path: root/extent-cache.h
diff options
authorNikolay Borisov <>2018-05-04 10:47:26 +0300
committerDavid Sterba <>2018-06-07 16:37:32 +0200
commit8a867d1dddd48f71a6f2e7c035be823b654f8baa (patch)
tree92c481fd994bd84ae4fc9a406d8e2503a54955f9 /extent-cache.h
parent873fba7101479686d24c4e70c582732b7f02480d (diff)
btrfs-progs: Remove add_cache_extent2
Commit 17793e3e6a49 ("Btrfs-progs: extend the extent cache for the device extent") extended the cache extent APIs to support objectid to distinguish between phyisical extents with same dimensions but on different devices. However, it seems that this particular function is not used to allocate a device extent with accompanying objectid. Instead such extents as processed solely by insert_device_extent_record. Remove the unused code as a result. Signed-off-by: Nikolay Borisov <> Reviewed-by: Qu Wenruo <> Signed-off-by: David Sterba <>
Diffstat (limited to 'extent-cache.h')
1 files changed, 0 insertions, 2 deletions
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);