]> 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)
commit50c31eaa4ccf6923cd19d79033f8d7584de9077e
treebb1aa05592504262569634794ea569695ed95257
parent9283b9e09a6d4c0150c33b5674d5071234218c99
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