btrfs-progs: remove unused function extent_io_tree_init_cache_max()

The function was introduced by commit a5ce5d2198 ("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>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Qu Wenruo 2022-09-23 19:59:44 +08:00 committed by David Sterba
parent 3d6dba10de
commit 811ae819e3
2 changed files with 0 additions and 9 deletions

View file

@ -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;

View file

@ -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);