From 811ae819e3ab5596181beeab1852dce18a4143b6 Mon Sep 17 00:00:00 2001 From: Qu Wenruo Date: Fri, 23 Sep 2022 19:59:44 +0800 Subject: [PATCH] btrfs-progs: remove unused function extent_io_tree_init_cache_max() The function was 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 Signed-off-by: David Sterba --- kernel-shared/extent_io.c | 7 ------- kernel-shared/extent_io.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/kernel-shared/extent_io.c b/kernel-shared/extent_io.c index 48bcf2cf..a34616c9 100644 --- a/kernel-shared/extent_io.c +++ b/kernel-shared/extent_io.c @@ -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; diff --git a/kernel-shared/extent_io.h b/kernel-shared/extent_io.h index 2148a811..ccdf768c 100644 --- a/kernel-shared/extent_io.h +++ b/kernel-shared/extent_io.h @@ -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);