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 /lib/mpi/mpi-add.c | |
| parent | c46c4247ab046b11806cdb10e04395c2f2cd1e41 (diff) | |
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 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions
