btrfs: convert btrfs_block_group::seq_zone to runtime flag
authorDavid Sterba <dsterba@suse.com>
Mon, 31 Oct 2022 19:33:46 +0000 (20:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 15:52:28 +0000 (17:52 +0200)
commit29cebf80877ba55ec63c666e6a06f241f62fcfa5
tree836adb346c3be56df1a4186f13523a2eba3c51bc
parent94cde94169f0770c40cbe7c3f8685c9a61bc4c83
btrfs: convert btrfs_block_group::seq_zone to runtime flag

[ Upstream commit 961f5b8bf48a463ac5fe5b13143426d79eb41817 ]

In zoned mode the sequential status of zone can be also tracked in the
runtime flags of block group.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: 0657b20c5a76 ("btrfs: fix use-after-free of new block group that became unused")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/block-group.h
fs/btrfs/zoned.c