btrfs: zoned: factor out per-zone logic from btrfs_load_block_group_zone_info
authorChristoph Hellwig <hch@lst.de>
Mon, 5 Jun 2023 08:51:06 +0000 (10:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:08 +0000 (16:44 +0200)
commit09a46725cc84165af452d978a3532d6b97a28796
treee1882e0a5657c907c8ef95bb57c84cbd261a56a9
parent15c12fcc50a1b12a747f8b6ec05cdb18c537a4d1
btrfs: zoned: factor out per-zone logic from btrfs_load_block_group_zone_info

Split out a helper for the body of the per-zone loop in
btrfs_load_block_group_zone_info to make the function easier to read and
modify.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zoned.c