]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: zoned: introduce physical_map to btrfs_block_group
authorNaohiro Aota <naohiro.aota@wdc.com>
Thu, 19 Aug 2021 12:19:16 +0000 (21:19 +0900)
committerDavid Sterba <dsterba@suse.com>
Tue, 26 Oct 2021 17:07:59 +0000 (19:07 +0200)
commit468880e5fb4848c8c43696a5092cb3b1b9a68759
tree99c9c5944e8ba8146f01d0c5c2275bc7c67e5e6f
parentbd22c90433564987a83d859e998e0d4a4a6f783d
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>
fs/btrfs/block-group.c
fs/btrfs/block-group.h
fs/btrfs/zoned.c