summaryrefslogtreecommitdiff
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-04-01 16:12:52 +0100
committerDavid Sterba <dsterba@suse.com>2025-05-15 14:30:41 +0200
commitc4e33a8431cc1a4c87c9cdee427c60f40079eea5 (patch)
tree37e739f624ebc25e6f05c6cd0c3b59b531c5f693 /fs/btrfs/inode.c
parent39c5714cb4933a41a8820fb02a9fe1cc1f82335a (diff)
btrfs: use clear_extent_bits() instead of clear_extent_bit() where possible
Several places are using clear_extent_bit() and passing a NULL value for the 'cached' argument, which is pointless as they can use instead clear_extent_bits(). Reviewed-by: Boris Burkov <boris@bur.io> 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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 7b24420e0c5a..dcf79c2fad9b 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -1757,8 +1757,7 @@ static int fallback_to_cow(struct btrfs_inode *inode,
spin_unlock(&sinfo->lock);
if (count > 0)
- clear_extent_bit(io_tree, start, end, EXTENT_NORESERVE,
- NULL);
+ clear_extent_bits(io_tree, start, end, EXTENT_NORESERVE);
}
unlock_extent(io_tree, start, end, &cached_state);