btrfs: zoned: make zone finishing multi stripe capable
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Wed, 26 Jan 2022 13:46:21 +0000 (05:46 -0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 Feb 2022 15:19:50 +0000 (16:19 +0100)
commitad48bffac0e343c93b6985b6fa855cadc33fe2fd
tree03a1ff5bbcd83823671615e5f434a76aa9ead7e9
parent6827d414e8c0b897397ae8a2586e5faa92b48561
btrfs: zoned: make zone finishing multi stripe capable

Currently finishing of a zone only works if the block group isn't
spanning more than one zone.

This limitation is purely artificial and can be easily expanded to block
groups being places across multiple zones.

This is a preparation for allowing DUP and later more complex block-group
profiles on zoned btrfs.

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