diff options
author | Josef Bacik <josef@toxicpanda.com> | 2022-09-10 00:53:30 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 13:28:03 +0300 |
commit | d8038a1f46f37680342d81d443f17bbd1b5b768c (patch) | |
tree | d1bae6680d3b17c4d5f832784e7fd905964bddf2 /fs/btrfs/extent-io-tree.c | |
parent | e3974c669472fed95eca723b6ab1340d0db33334 (diff) | |
download | linux-d8038a1f46f37680342d81d443f17bbd1b5b768c.tar.xz |
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: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent-io-tree.c')
-rw-r--r-- | fs/btrfs/extent-io-tree.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/btrfs/extent-io-tree.c b/fs/btrfs/extent-io-tree.c index c907147c8c61..4571e598ff8b 100644 --- a/fs/btrfs/extent-io-tree.c +++ b/fs/btrfs/extent-io-tree.c @@ -46,9 +46,11 @@ static inline void btrfs_extent_state_leak_debug_check(void) } } -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)) +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; u64 isize; @@ -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_del_state(state) 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 /* |