diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2023-03-13 08:06:14 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-03-15 20:51:07 +0100 |
commit | e15acc25880cf048dba9df94d76ed7e7e10040e6 (patch) | |
tree | bd5d31adf8acd857e257562445d9755c3d1d0a26 /fs/btrfs/zoned.c | |
parent | btrfs: zoned: count fresh BG region as zone unusable (diff) | |
download | linux-e15acc25880cf048dba9df94d76ed7e7e10040e6.tar.xz linux-e15acc25880cf048dba9df94d76ed7e7e10040e6.zip |
btrfs: zoned: drop space_info->active_total_bytes
The space_info->active_total_bytes is no longer necessary as we now
count the region of newly allocated block group as zone_unusable. Drop
its usage.
Fixes: 6a921de58992 ("btrfs: zoned: introduce space_info->active_total_bytes")
CC: stable@vger.kernel.org # 6.1+
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/zoned.c')
-rw-r--r-- | fs/btrfs/zoned.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index 6828712578ca..45d04092f2f8 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -2316,10 +2316,6 @@ int btrfs_zoned_activate_one_bg(struct btrfs_fs_info *fs_info, if (!btrfs_is_zoned(fs_info) || (space_info->flags & BTRFS_BLOCK_GROUP_DATA)) return 0; - /* No more block groups to activate */ - if (space_info->active_total_bytes == space_info->total_bytes) - return 0; - for (;;) { int ret; bool need_finish = false; |