diff options
author | Chris Mason <chris.mason@fusionio.com> | 2013-03-05 11:11:26 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-03-05 11:30:16 -0500 |
commit | 154ea2893002618bc3f9a1e2d8186c65490968b1 (patch) | |
tree | 5a74f2ccc965aef784891a29d1ded2b8610257a7 /fs/xfs/xfs_sysctl.c | |
parent | d7011f5b9dd3c88feb5cebad7d0b719ed6816ebd (diff) | |
download | blackbird-op-linux-154ea2893002618bc3f9a1e2d8186c65490968b1.tar.gz blackbird-op-linux-154ea2893002618bc3f9a1e2d8186c65490968b1.zip |
Btrfs: enforce min_bytes parameter during extent allocation
Commit 24542bf7ea5e4fdfdb5157ff544c093fa4dcb536 changed preallocation of
extents to cap the max size we try to allocate. It's a valid change,
but the extent reservation code is also used by balance, and that
can't tolerate a smaller extent being allocated.
__btrfs_prealloc_file_range already has a min_size parameter, which is
used by relocation to request a specific extent size. This commit
adds an extra check to enforce that minimum extent size.
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Reported-by: Stefan Behrens <sbehrens@giantdisaster.de>
Diffstat (limited to 'fs/xfs/xfs_sysctl.c')
0 files changed, 0 insertions, 0 deletions