diff options
author | Naohiro Aota <[email protected]> | 2022-07-09 08:18:47 +0900 |
---|---|---|
committer | David Sterba <[email protected]> | 2022-07-25 17:45:42 +0200 |
commit | b0931513913633044ed6e3800334c28433c007b0 (patch) | |
tree | a1675ccbee2b3d98a0a826c1597d3f3ad98e1f39 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 79417d040f4f77b19c701bccc23013b9cdac358d (diff) |
btrfs: zoned: activate metadata block group on flush_space
For metadata space on zoned filesystem, reaching ALLOC_CHUNK{,_FORCE}
means we don't have enough space left in the active_total_bytes. Before
allocating a new chunk, we can try to activate an existing block group
in this case.
Also, allocating a chunk is not enough to grant a ticket for metadata
space on zoned filesystem we need to activate the block group to
increase the active_total_bytes.
btrfs_zoned_activate_one_bg() implements the activation feature. It will
activate a block group by (maybe) finishing a block group. It will give up
activating a block group if it cannot finish any block group.
CC: [email protected] # 5.16+
Fixes: afba2bc036b0 ("btrfs: zoned: implement active zone tracking")
Signed-off-by: Naohiro Aota <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions