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, 14 Feb 2022 15:36:02 +0000 (16:36 +0100)
commitb7358d7980a77d4f10411c1e07403691f7799549
tree3f9a54b095a919c4203f7ef2b805eac7b1291c48
parent1dfacbc50ab276c6230e45ac32825c5def6e1898
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