Naohiro Aota afba2bc036 btrfs: zoned: implement active zone tracking
Add zone_is_active flag to btrfs_block_group. This flag indicates the
underlying zones are all active. Such zone active block groups are tracked
by fs_info->active_bg_list.

btrfs_dev_{set,clear}_active_zone() take responsibility for the underlying
device part. They set/clear the bitmap to indicate zone activeness and
count the number of zones we can activate left.

btrfs_zone_{activate,finish}() take responsibility for the logical part and
the list management. In addition, btrfs_zone_finish() wait for any writes
on it and send REQ_OP_ZONE_FINISH to the zone.

Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-10-26 19:07:59 +02:00
..
2021-09-02 09:21:27 -07:00
2021-08-23 13:19:09 +02:00
2021-06-22 14:11:57 +02:00
2021-06-22 14:11:57 +02:00
2021-06-22 14:11:57 +02:00
2021-02-09 02:46:07 +01:00
2019-11-18 23:43:44 +01:00
2021-08-31 11:13:35 -07:00
2021-06-22 14:11:57 +02:00
2021-08-23 13:19:09 +02:00
2021-06-22 14:11:57 +02:00
2020-10-07 12:13:17 +02:00
2021-08-23 13:19:15 +02:00
2021-03-05 12:21:14 -08:00