aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/space-info.h
diff options
context:
space:
mode:
authorNaohiro Aota <[email protected]>2023-03-13 07:06:14 +0000
committerDavid Sterba <[email protected]>2023-03-15 19:51:07 +0000
commite15acc25880cf048dba9df94d76ed7e7e10040e6 (patch)
treebd5d31adf8acd857e257562445d9755c3d1d0a26 /fs/btrfs/space-info.h
parentbtrfs: zoned: count fresh BG region as zone unusable (diff)
downloadkernel-e15acc25880cf048dba9df94d76ed7e7e10040e6.tar.gz
kernel-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: [email protected] # 6.1+ Signed-off-by: Naohiro Aota <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/space-info.h')
-rw-r--r--fs/btrfs/space-info.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/space-info.h b/fs/btrfs/space-info.h
index fc99ea2b0c34..2033b71b18ce 100644
--- a/fs/btrfs/space-info.h
+++ b/fs/btrfs/space-info.h
@@ -96,8 +96,6 @@ struct btrfs_space_info {
u64 bytes_may_use; /* number of bytes that may be used for
delalloc/allocations */
u64 bytes_readonly; /* total bytes that are read only */
- /* Total bytes in the space, but only accounts active block groups. */
- u64 active_total_bytes;
u64 bytes_zone_unusable; /* total bytes that are unusable until
resetting the device zone */