summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorNaohiro Aota <naota@elisp.net>2023-06-06 07:36:34 +0200
committerDavid Sterba <dsterba@suse.com>2023-06-19 13:59:37 +0200
commita9f189716cf15913c453299d72f69c51a9b0f86b (patch)
treeb903c3e0055dae026f6ad90b2f41d33dc3421e0f /virt
parentbtrfs: delete unused BGs while reclaiming BGs (diff)
downloadlinux-a9f189716cf15913c453299d72f69c51a9b0f86b.tar.xz
linux-a9f189716cf15913c453299d72f69c51a9b0f86b.zip
btrfs: move out now unused BG from the reclaim list
An unused block group is easy to remove to free up space and should be reclaimed fast. Such block group can often already be a target of the reclaim process. As we check list_empty(&bg->bg_list), we keep it in the reclaim list. That block group is never reclaimed until the file system is filled e.g. up to 75%. Instead, we can move unused block group to the unused list and delete it fast. Fixes: 18bb8bbf13c1 ("btrfs: zoned: automatically reclaim zones") CC: stable@vger.kernel.org # 5.15+ Reviewed-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions