btrfs: zoned: introduce btrfs_zoned_bg_is_full
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 4 May 2022 00:48:50 +0000 (17:48 -0700)
committerDavid Sterba <dsterba@suse.com>
Mon, 16 May 2022 15:17:32 +0000 (17:17 +0200)
commit1bfd476754a2d63f899ef9c3e253b17766b8fb73
tree524eb7511c8709caf291088f41837a28a96e2bf7
parentcf4f03c3be4a2a08be5d3a40d25ef577be2db061
btrfs: zoned: introduce btrfs_zoned_bg_is_full

Introduce a wrapper to check if all the space in a block group is
allocated or not.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
fs/btrfs/zoned.c
fs/btrfs/zoned.h