]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
btrfs: make wait_extent_bit() static
authorFilipe Manana <fdmanana@suse.com>
Fri, 22 Sep 2023 10:39:04 +0000 (11:39 +0100)
committerDavid Sterba <dsterba@suse.com>
Thu, 12 Oct 2023 14:44:15 +0000 (16:44 +0200)
The function wait_extent_bit() is not used outside extent-io-tree.c so
make it static. Furthermore the function doesn't have the 'btrfs_' prefix.

Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-io-tree.c
fs/btrfs/extent-io-tree.h

index 839e9401e5b3dfce8d84c3ef4b1ae08277ae94dd..58b3ea36a727a0e02eab888a667d30a0f46b0352 100644 (file)
@@ -767,8 +767,8 @@ static void wait_on_state(struct extent_io_tree *tree,
  * The range [start, end] is inclusive.
  * The tree lock is taken by this function
  */
-void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits,
-                    struct extent_state **cached_state)
+static void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end,
+                           u32 bits, struct extent_state **cached_state)
 {
        struct extent_state *state;
 
index 93c8eddadc033caaed0faa6673f20d2bc6f63291..5602b0137fcdc007e936d49738bf8f6c683cb2f4 100644 (file)
@@ -193,7 +193,5 @@ int find_contiguous_extent_bit(struct extent_io_tree *tree, u64 start,
 bool btrfs_find_delalloc_range(struct extent_io_tree *tree, u64 *start,
                               u64 *end, u64 max_bytes,
                               struct extent_state **cached_state);
-void wait_extent_bit(struct extent_io_tree *tree, u64 start, u64 end, u32 bits,
-                    struct extent_state **cached_state);
 
 #endif /* BTRFS_EXTENT_IO_TREE_H */