diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2021-08-19 21:19:10 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2021-10-26 19:07:58 +0200 |
commit | 98173255bddd24cb7d50b5da936f8dff76f5a732 (patch) | |
tree | 43219dba06bb13edcbfbb9aa3904760ebefbeb04 /.gitattributes | |
parent | btrfs: zoned: move btrfs_free_excluded_extents out of btrfs_calc_zone_unusable (diff) | |
download | linux-dev-98173255bddd24cb7d50b5da936f8dff76f5a732.tar.xz linux-dev-98173255bddd24cb7d50b5da936f8dff76f5a732.zip |
btrfs: zoned: calculate free space from zone capacity
Now that we introduced capacity in a block group, we need to calculate free
space using the capacity instead of the length. Thus, bytes we account
capacity - alloc_pointer as free, and account bytes [capacity, length] as
zone unusable.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions