Commit b8d9bfeb18f9af794020d96e9bee984d18a8d737

Authored by Miao Xie
Committed by Chris Mason
1 parent a555f810af

Btrfs: remove tree_search() in extent_map.c

This patch removes tree_search() in extent_map.c because it is not called by
anything.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>

Showing 1 changed file with 0 additions and 14 deletions Side-by-side Diff

fs/btrfs/extent_map.c
... ... @@ -155,20 +155,6 @@
155 155 return NULL;
156 156 }
157 157  
158   -/*
159   - * look for an offset in the tree, and if it can't be found, return
160   - * the first offset we can find smaller than 'offset'.
161   - */
162   -static inline struct rb_node *tree_search(struct rb_root *root, u64 offset)
163   -{
164   - struct rb_node *prev;
165   - struct rb_node *ret;
166   - ret = __tree_search(root, offset, &prev, NULL);
167   - if (!ret)
168   - return prev;
169   - return ret;
170   -}
171   -
172 158 /* check to see if two extent_map structs are adjacent and safe to merge */
173 159 static int mergable_maps(struct extent_map *prev, struct extent_map *next)
174 160 {