]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3b813cc9120e3a046c13e780094d6d77fa2c6590
tree524eb7511c8709caf291088f41837a28a96e2bf7
parent4b2a7e9213ed7f7dd2d654f7483191d3df76f219
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