diff options
| author | Filipe Manana <[email protected]> | 2025-07-11 08:46:16 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2025-07-21 22:09:22 +0000 |
| commit | d6be378de06c8ae72c46d528f69cc53fa382b01c (patch) | |
| tree | b59cfd3a7dc8f12dfacfe36812d9bd41e730cbc5 /fs/btrfs/extent-io-tree.h | |
| parent | btrfs: use cached state when falling back from NOCoW write to CoW write (diff) | |
| download | kernel-d6be378de06c8ae72c46d528f69cc53fa382b01c.tar.gz kernel-d6be378de06c8ae72c46d528f69cc53fa382b01c.zip | |
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 <[email protected]>
Reviewed-by: Johannes Thumshirn <[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/extent-io-tree.h')
| -rw-r--r-- | fs/btrfs/extent-io-tree.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/btrfs/extent-io-tree.h b/fs/btrfs/extent-io-tree.h index 819da07bff09..36facca37973 100644 --- a/fs/btrfs/extent-io-tree.h +++ b/fs/btrfs/extent-io-tree.h @@ -192,12 +192,6 @@ static inline int btrfs_unlock_extent(struct extent_io_tree *tree, u64 start, u6 cached, NULL); } -static inline int btrfs_clear_extent_bits(struct extent_io_tree *tree, u64 start, - u64 end, u32 bits) -{ - return btrfs_clear_extent_bit(tree, start, end, bits, NULL); -} - int btrfs_set_record_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, struct extent_changeset *changeset); int btrfs_set_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, |
