mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-24 11:02:51 +00:00
btrfs: remove btrfs_clear_extent_bits()
It's just a simple wrapper around btrfs_clear_extent_bit() that passes a NULL for its last argument (a cached extent state record), plus there is not counter part - we have a btrfs_set_extent_bit() but we do not have a btrfs_set_extent_bits() (plural version). So just remove it and make all callers use btrfs_clear_extent_bit() directly. Reviewed-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
committed by
David Sterba
parent
279b4db10e
commit
d6be378de0
@@ -3374,8 +3374,8 @@ bool btrfs_data_csum_ok(struct btrfs_bio *bbio, struct btrfs_device *dev,
|
||||
btrfs_test_range_bit(&inode->io_tree, file_offset, end, EXTENT_NODATASUM,
|
||||
NULL)) {
|
||||
/* Skip the range without csum for data reloc inode */
|
||||
btrfs_clear_extent_bits(&inode->io_tree, file_offset, end,
|
||||
EXTENT_NODATASUM);
|
||||
btrfs_clear_extent_bit(&inode->io_tree, file_offset, end,
|
||||
EXTENT_NODATASUM, NULL);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user