aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorJosef Bacik <[email protected]>2022-07-25 13:05:05 -0400
committerDavid Sterba <[email protected]>2022-07-27 21:23:16 +0200
commit74944c873602a3ed8d16ff7af3f64af80c0f9dac (patch)
tree48290c167d6390e4f4ba07bcee76e2933315e72a /tools/testing/selftests/bpf/progs/test_autoload.c
parent0b078d9db8793b1bd911e97be854e3c964235c78 (diff)
btrfs: reset RO counter on block group if we fail to relocate
With the automatic block group reclaim code we will preemptively try to mark the block group RO before we start the relocation. We do this to make sure we should actually try to relocate the block group. However if we hit an error during the actual relocation we won't clean up our RO counter and the block group will remain RO. This was observed internally with file systems reporting less space available from df when we had failed background relocations. Fix this by doing the dec_ro in the error case. Fixes: 18bb8bbf13c1 ("btrfs: zoned: automatically reclaim zones") CC: [email protected] # 5.15+ Reviewed-by: Boris Burkov <[email protected]> Signed-off-by: Josef Bacik <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions