btrfs: allow block group background reclaim for non-zoned filesystems
authorJosef Bacik <josef@toxicpanda.com>
Tue, 29 Mar 2022 08:56:07 +0000 (01:56 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:03:11 +0000 (17:03 +0200)
commitac2f1e63c65c695b6134f40a078cf82df627e188
treea95d57bc2f9dd62b8a190b73d0d5b8f9ec376bbf
parentbb5a098d9791f184899499531ff4411089e2a5e0
btrfs: allow block group background reclaim for non-zoned filesystems

This will allow us to set a threshold for block groups to be
automatically relocated even if we don't have zoned devices.

We have found this feature invaluable at Facebook due to how our
workload interacts with the allocator.  We have been using this in
production for months with only a single problem that has already been
fixed.

Tested-by: Pankaj Raghav <p.raghav@samsung.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c