diff --git a/extent-cache.c b/extent-cache.c index 38bed8b5..662c801e 100644 --- a/extent-cache.c +++ b/extent-cache.c @@ -107,10 +107,9 @@ alloc_cache_extent(u64 objectid, u64 start, u64 size) return pe; } -static int __add_cache_extent(struct cache_tree *tree, - u64 objectid, u64 start, u64 size) +int add_cache_extent(struct cache_tree *tree, u64 start, u64 size) { - struct cache_extent *pe = alloc_cache_extent(objectid, start, size); + struct cache_extent *pe = alloc_cache_extent(0, start, size); int ret; if (!pe) { @@ -125,17 +124,6 @@ static int __add_cache_extent(struct cache_tree *tree, return ret; } -int add_cache_extent(struct cache_tree *tree, u64 start, u64 size) -{ - return __add_cache_extent(tree, 0, start, size); -} - -int add_cache_extent2(struct cache_tree *tree, - u64 objectid, u64 start, u64 size) -{ - return __add_cache_extent(tree, objectid, start, size); -} - int insert_cache_extent(struct cache_tree *tree, struct cache_extent *pe) { return rb_insert(&tree->root, &pe->rb_node, cache_tree_comp_nodes); diff --git a/extent-cache.h b/extent-cache.h index 82db7fa3..33d018dd 100644 --- a/extent-cache.h +++ b/extent-cache.h @@ -106,8 +106,6 @@ struct cache_extent *search_cache_extent2(struct cache_tree *tree, */ struct cache_extent *lookup_cache_extent2(struct cache_tree *tree, u64 objectid, u64 start, u64 size); -int add_cache_extent2(struct cache_tree *tree, - u64 objectid, u64 start, u64 size); int insert_cache_extent2(struct cache_tree *tree, struct cache_extent *pe); /*