diff options
| author | Filipe Manana <[email protected]> | 2025-04-01 15:12:52 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-05-15 12:30:41 +0000 |
| commit | c4e33a8431cc1a4c87c9cdee427c60f40079eea5 (patch) | |
| tree | 37e739f624ebc25e6f05c6cd0c3b59b531c5f693 /fs/btrfs/inode.c | |
| parent | btrfs: use clear_extent_bits() at chunk_map_device_clear_bits() (diff) | |
| download | kernel-c4e33a8431cc1a4c87c9cdee427c60f40079eea5.tar.gz kernel-c4e33a8431cc1a4c87c9cdee427c60f40079eea5.zip | |
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 <[email protected]>
Reviewed-by: Qu Wenruo <[email protected]>
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/inode.c')
| -rw-r--r-- | fs/btrfs/inode.c | 3 |
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); |
