summaryrefslogtreecommitdiff
path: root/fs/btrfs/check-integrity.c
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2022-03-29 11:56:09 +0300
committerDavid Sterba <dsterba@suse.com>2022-05-16 18:03:11 +0300
commit3687fcb0752ac9c4630b4aeb5362c6e6f81c528e (patch)
treee6b2116374c6bd3f4ac7ed096daf179ef297a374 /fs/btrfs/check-integrity.c
parentef972e7b5edeec9ed5213476186ceae5798b01e8 (diff)
downloadlinux-3687fcb0752ac9c4630b4aeb5362c6e6f81c528e.tar.xz
btrfs: zoned: make auto-reclaim less aggressive
The current auto-reclaim algorithm starts reclaiming all block groups with a zone_unusable value above a configured threshold. This is causing a lot of reclaim IO even if there would be enough free zones on the device. Instead of only accounting a block groups zone_unusable value, also take the ratio of free and not usable (written as well as zone_unusable) bytes a device has into account. Tested-by: Pankaj Raghav <p.raghav@samsung.com> Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/check-integrity.c')
0 files changed, 0 insertions, 0 deletions