]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: move reclaiming of a single block group into its own function
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Thu, 5 Mar 2026 10:06:42 +0000 (11:06 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:56:01 +0000 (18:56 +0200)
commitb619185168555dc286adf8af634bea39b9cf0107
tree931d6b3d3b5a18118768b3623d5e5c4be5b22445
parent3eaf5f082c4cc71dea70bee23355bf63b24df303
btrfs: move reclaiming of a single block group into its own function

The main work of reclaiming a single block-group in
btrfs_reclaim_bgs_work() is done inside the loop iterating over all the
block_groups in the fs_info->reclaim_bgs list.

Factor out reclaim of a single block group from the loop to improve
readability.

No functional change intended.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/block-group.c