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/reflink.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/reflink.c')
| -rw-r--r-- | fs/btrfs/reflink.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/btrfs/reflink.c b/fs/btrfs/reflink.c index 15c296cb4dac..09e40a2fdcf0 100644 --- a/fs/btrfs/reflink.c +++ b/fs/btrfs/reflink.c @@ -95,9 +95,8 @@ static int copy_inline_to_page(struct btrfs_inode *inode, if (ret < 0) goto out_unlock; - clear_extent_bit(&inode->io_tree, file_offset, range_end, - EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG, - NULL); + clear_extent_bits(&inode->io_tree, file_offset, range_end, + EXTENT_DELALLOC | EXTENT_DO_ACCOUNTING | EXTENT_DEFRAG); ret = btrfs_set_extent_delalloc(inode, file_offset, range_end, 0, NULL); if (ret) goto out_unlock; |
