btrfs: push extent lock into run_delalloc_nocow
authorJosef Bacik <josef@toxicpanda.com>
Mon, 12 Feb 2024 21:21:19 +0000 (16:21 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:09 +0000 (21:31 +0200)
commit7c9acd440f4d1124122639928ac4ff69082bbd3a
treeb41642a9b7d21411a6c01f79764afbf7bdf1393d
parentc0707c9e1e36d56cef7b3c8de5c5fdcb14f34aa5
btrfs: push extent lock into run_delalloc_nocow

run_delalloc_nocow is a bit special as it walks through the file extents
for the inode and determines what it can nocow and what it can't.  This
is the more complicated area for extent locking, so start with this
function.

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