Commit d8038a1f authored by Josef Bacik's avatar Josef Bacik Committed by David Sterba

btrfs: unexport btrfs_debug_check_extent_io_range

We no longer need to export this as all users are in extent-io-tree.c,
remove it from the header and put it into extent-io-tree.c.
Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent e3974c66
...@@ -46,9 +46,11 @@ static inline void btrfs_extent_state_leak_debug_check(void) ...@@ -46,9 +46,11 @@ static inline void btrfs_extent_state_leak_debug_check(void)
} }
} }
void __btrfs_debug_check_extent_io_range(const char *caller, #define btrfs_debug_check_extent_io_range(tree, start, end) \
struct extent_io_tree *tree, u64 start, __btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end))
u64 end) static inline void __btrfs_debug_check_extent_io_range(const char *caller,
struct extent_io_tree *tree,
u64 start, u64 end)
{ {
struct inode *inode = tree->private_data; struct inode *inode = tree->private_data;
u64 isize; u64 isize;
...@@ -67,6 +69,7 @@ void __btrfs_debug_check_extent_io_range(const char *caller, ...@@ -67,6 +69,7 @@ void __btrfs_debug_check_extent_io_range(const char *caller,
#define btrfs_leak_debug_add_state(state) do {} while (0) #define btrfs_leak_debug_add_state(state) do {} while (0)
#define btrfs_leak_debug_del_state(state) do {} while (0) #define btrfs_leak_debug_del_state(state) do {} while (0)
#define btrfs_extent_state_leak_debug_check() do {} while (0) #define btrfs_extent_state_leak_debug_check() do {} while (0)
#define btrfs_debug_check_extent_io_range(c, s, e) do {} while (0)
#endif #endif
/* /*
......
...@@ -269,16 +269,6 @@ static inline bool extent_state_in_tree(const struct extent_state *state) ...@@ -269,16 +269,6 @@ static inline bool extent_state_in_tree(const struct extent_state *state)
return !RB_EMPTY_NODE(&state->rb_node); return !RB_EMPTY_NODE(&state->rb_node);
} }
#ifdef CONFIG_BTRFS_DEBUG
void __btrfs_debug_check_extent_io_range(const char *caller,
struct extent_io_tree *tree, u64 start,
u64 end);
#define btrfs_debug_check_extent_io_range(tree, start, end) \
__btrfs_debug_check_extent_io_range(__func__, (tree), (start), (end))
#else
#define btrfs_debug_check_extent_io_range(c, s, e) do {} while (0)
#endif
struct tree_entry { struct tree_entry {
u64 start; u64 start;
u64 end; u64 end;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment