btrfs: push lock_extent into cow_file_range_inline
authorJosef Bacik <josef@toxicpanda.com>
Wed, 3 Apr 2024 17:53:57 +0000 (13:53 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:10 +0000 (21:31 +0200)
commit0ab540995ae049f1536260b0f6124483e685b593
treeb1f661d22b5a1a3960f4ffcf9b1e1b536de73108
parenta0766d8f35d8c7b3df319ccfd6e85b4a07c1f0bd
btrfs: push lock_extent into cow_file_range_inline

Now that we've pushed the lock_extent() into cow_file_range() we can
push the extent locking into cow_file_range_inline() and move the
lock_extent in cow_file_range() to after we call
cow_file_range_inline().

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