diff options
author | David Sterba <dsterba@suse.com> | 2023-05-25 01:04:23 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2023-06-19 13:59:30 +0200 |
commit | 66240ab115907677a9b9954e936a9d6211783cbe (patch) | |
tree | 63725536c6da123f76ec2e7d4b498a64a2dfe9f3 /fs/btrfs/extent-io-tree.h | |
parent | btrfs: open code set_extent_defrag (diff) | |
download | linux-66240ab115907677a9b9954e936a9d6211783cbe.tar.xz linux-66240ab115907677a9b9954e936a9d6211783cbe.zip |
btrfs: open code set_extent_delalloc
The helper is used once in fs code and a few times in the self test
code.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-io-tree.h')
-rw-r--r-- | fs/btrfs/extent-io-tree.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/btrfs/extent-io-tree.h b/fs/btrfs/extent-io-tree.h index ea344e5ca24f..e5289d67b6b7 100644 --- a/fs/btrfs/extent-io-tree.h +++ b/fs/btrfs/extent-io-tree.h @@ -193,15 +193,6 @@ int convert_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits, u32 clear_bits, struct extent_state **cached_state); -static inline int set_extent_delalloc(struct extent_io_tree *tree, u64 start, - u64 end, u32 extra_bits, - struct extent_state **cached_state) -{ - return set_extent_bit(tree, start, end, - EXTENT_DELALLOC | extra_bits, - cached_state, GFP_NOFS); -} - static inline int set_extent_new(struct extent_io_tree *tree, u64 start, u64 end) { |