summaryrefslogtreecommitdiff
path: root/fs/btrfs/block-group.h
diff options
context:
space:
mode:
authorNaohiro Aota <naohiro.aota@wdc.com>2021-08-19 21:19:16 +0900
committerDavid Sterba <dsterba@suse.com>2021-10-26 19:07:59 +0200
commitdafc340dbd10a21c133f3b152cee6214fcfbf84a (patch)
tree99c9c5944e8ba8146f01d0c5c2275bc7c67e5e6f /fs/btrfs/block-group.h
parentea6f8ddcde638123a010f8a43f68e5856b1788cc (diff)
btrfs: zoned: introduce physical_map to btrfs_block_group
We will use a block group's physical location to track active zones and finish fully written zones in the following commits. Since the zone activation is done in the extent allocation context which already holding the tree locks, we can't query the chunk tree for the physical locations. So, copy the location info into a block group and use it for activation. Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/block-group.h')
-rw-r--r--fs/btrfs/block-group.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/block-group.h b/fs/btrfs/block-group.h
index 2db40a005512..265db2c316d3 100644
--- a/fs/btrfs/block-group.h
+++ b/fs/btrfs/block-group.h
@@ -204,6 +204,7 @@ struct btrfs_block_group {
u64 zone_unusable;
u64 zone_capacity;
u64 meta_write_pointer;
+ struct map_lookup *physical_map;
};
static inline u64 btrfs_block_group_end(struct btrfs_block_group *block_group)