diff options
author | Josef Bacik <[email protected]> | 2024-04-03 15:06:09 -0400 |
---|---|---|
committer | David Sterba <[email protected]> | 2024-05-07 21:31:10 +0200 |
commit | d456c25dbb2385fa081e615793c797cbcd412724 (patch) | |
tree | b299e5f6042b147503bd0f492ac5ab925256824c /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | cd241a8f554c258e92a694f6aa07e90b89ddebe6 (diff) |
btrfs: push lock_extent down in cow_file_range()
Now that we've got the extent lock pushed into cow_file_range() we can
push it further down into the allocation loop. This allows us to only
hold the extent lock during the dropping of the extent map range and
inserting the ordered extent.
This makes the error case a little trickier as we'll now have to lock
the range before clearing any of the other extent bits for the range,
but this is the error path so is less performance critical.
Reviewed-by: Goldwyn Rodrigues <[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