]> git.ipfire.org Git - thirdparty/linux.git/commit
btrfs: use cached state when falling back from NOCoW write to CoW write
authorFilipe Manana <fdmanana@suse.com>
Fri, 11 Jul 2025 08:23:09 +0000 (09:23 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 22:09:22 +0000 (00:09 +0200)
commit279b4db10e46a31c7cd8161c1a5d7dc4c423b028
tree8903b298215e3703baa7e0f6b14bdd99336cc727
parentbfc9d71aa41d6cfc32b60318222b3e65352b0776
btrfs: use cached state when falling back from NOCoW write to CoW write

We have a cached extent state record from the previous extent locking so
we can use when setting the EXTENT_NORESERVE in the range, allowing the
operation to be faster if the extent io tree is relatively large.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c