MFC r274636:

Sync with userland variant.
MFC r274674:

Add a tunable for spa_slop_shift which controls how much space we
would reserve by default.  Tuning is not recommended.

Relnotes:	yes
MFC r274370:

Rename variable name from 'index' to 'idx' to avoid shadowing index(3).

Noticed by:	dim