@@ -43,13 +43,6 @@ void extent_io_tree_init(struct extent_io_tree *tree)
tree->max_cache_size = (u64)total_memory() / 4;
}
-void extent_io_tree_init_cache_max(struct extent_io_tree *tree,
- u64 max_cache_size)
-{
- extent_io_tree_init(tree);
- tree->max_cache_size = max_cache_size;
-}
-
static struct extent_state *alloc_extent_state(void)
{
struct extent_state *state;
@@ -97,8 +97,6 @@ static inline void extent_buffer_get(struct extent_buffer *eb)
}
void extent_io_tree_init(struct extent_io_tree *tree);
-void extent_io_tree_init_cache_max(struct extent_io_tree *tree,
- u64 max_cache_size);
void extent_io_tree_cleanup(struct extent_io_tree *tree);
int set_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, int bits);
int clear_extent_bits(struct extent_io_tree *tree, u64 start, u64 end, int bits);
The function is introduced by commit a5ce5d219822 ("btrfs-progs: extent-cache: actually cache extent buffers") but never got utilized. Thus we can just remove it. Signed-off-by: Qu Wenruo <wqu@suse.com> --- kernel-shared/extent_io.c | 7 ------- kernel-shared/extent_io.h | 2 -- 2 files changed, 9 deletions(-)