]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: reset max_extent_size properly
authorJosef Bacik <josef@toxicpanda.com>
Thu, 11 Oct 2018 19:54:03 +0000 (15:54 -0400)
committerDavid Sterba <dsterba@suse.com>
Fri, 19 Oct 2018 10:20:03 +0000 (12:20 +0200)
commit4c20c3318288e0f237e71a1718cf879304ab9957
treeb43ed6c451e463f5e93bc47e50e3bde7c194a475
parent39c5209c4e93335f83ca424b38de0d1ff20bb4ec
btrfs: reset max_extent_size properly

If we use up our block group before allocating a new one we'll easily
get a max_extent_size that's set really really low, which will result in
a lot of fragmentation.  We need to make sure we're resetting the
max_extent_size when we add a new chunk or add new space.

CC: stable@vger.kernel.org # 4.4+
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c