]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: simplify block group traversal in btrfs_put_block_group_cache
authorJosef Bacik <josef@toxicpanda.com>
Fri, 15 Jul 2022 19:45:26 +0000 (15:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 26 Sep 2022 10:27:54 +0000 (12:27 +0200)
commitb65deccea77190064cb2c60d772cd0a4563718f5
treebb1aa05592504262569634794ea569695ed95257
parentf82227f39497f78ad0f7182c632943a561479bcc
btrfs: simplify block group traversal in btrfs_put_block_group_cache

We're breaking out and re-searching for the next block group while
evicting any of the block group cache inodes.  This is not needed, the
block groups aren't disappearing here, we can simply loop through the
block groups like normal and iput any inode that we find.

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