btrfs: remove unlock_extent from run_delalloc_compressed
authorJosef Bacik <josef@toxicpanda.com>
Mon, 12 Feb 2024 21:59:43 +0000 (16:59 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:09 +0000 (21:31 +0200)
commit0e128d4e41735b37d9450b4e622b427189afb191
tree5f3fe512db31192edf459160563ec89ed193b0a9
parentaa56b0aa91692c51142c3c7e4ab7665e84f792f5
btrfs: remove unlock_extent from run_delalloc_compressed

Since we immediately unlock the extent range when we enter
run_delalloc_compressed() simply move the lock_extent() down to cover
cow_file_range() and then remove the unlock_extent() from
run_delalloc_compressed.

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