Re: [PATCH v11 13/40] btrfs: track unusable bytes for zones

2021-01-12 Thread Josef Bacik
On 12/21/20 10:49 PM, Naohiro Aota wrote: In zoned btrfs a region that was once written then freed is not usable until we reset the underlying zone. So we need to distinguish such unusable space from usable free space. Therefore we need to introduce the "zone_unusable" field to the block group

[PATCH v11 13/40] btrfs: track unusable bytes for zones

2020-12-21 Thread Naohiro Aota
In zoned btrfs a region that was once written then freed is not usable until we reset the underlying zone. So we need to distinguish such unusable space from usable free space. Therefore we need to introduce the "zone_unusable" field to the block group structure, and "bytes_zone_unusable" to the