mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-08 13:47:07 +00:00
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:
parent
3d6dba10de
commit
811ae819e3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user