]> git.proxmox.com Git - mirror_zfs.git/commit
Pool allocation classes misplacing small file blocks
authorloli10K <loli10K@users.noreply.github.com>
Fri, 8 Feb 2019 20:32:12 +0000 (21:32 +0100)
committerMatthew Ahrens <mahrens@delphix.com>
Fri, 8 Feb 2019 20:32:12 +0000 (12:32 -0800)
commit4417096956f7439322c65d9e70a4526df45ea8d0
tree178e2f569132f796e7e724711be9a681671608c0
parent0902c4577f4ba2a3687549f7d5d19718a275fb52
Pool allocation classes misplacing small file blocks

Due to an off-by-one condition in spa_preferred_class() we are picking
the "normal" allocation class instead of the "special" one for file
blocks with size equal to the special_small_blocks property value.

This change fix the small code issue, update the ZFS Test Suite and the
zfs(8) man page.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Don Brady <don.brady@delphix.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #8351
Closes #8361
man/man8/zfs.8
module/zfs/spa_misc.c
tests/zfs-tests/tests/functional/alloc_class/alloc_class_012_pos.ksh