btrfs: push extent lock into run_delalloc_cow
authorJosef Bacik <josef@toxicpanda.com>
Wed, 3 Apr 2024 19:31:17 +0000 (15:31 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:09 +0000 (21:31 +0200)
commit00009d7bcb0ccc4479e1178790751e95cb36d7c4
tree24764f3ff91083b11f117ef2f20990f252d02a42
parent0e128d4e41735b37d9450b4e622b427189afb191
btrfs: push extent lock into run_delalloc_cow

This is used by zoned but also as the fallback for uncompressed extents
when we fail to compress the ranges.  Push the extent lock into
run_dealloc_cow(), and adjust the compression case to take the extent
lock after calling run_delalloc_cow().

Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c