Skip to contentSkip to conversation

btrfs: remove tree_search() in extent_map.c

PATCH In review Miao Xie 2 participants 2 messages Dec 15, 2009 – Jan 26, 2010 Btrfs file system

lore
Share & tools
lore

Miao Xie

author
#0 lore raw

PATCH 4/4 btrfs: remove tree_search() in extent_map.c

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

---
 fs/btrfs/extent_map.c |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
fs/btrfs/extent_map.c +0 -14
index 07ec673..fe4bb5e 100644
@@ -150,20 +150,6 @@ static struct rb_node *__tree_search(struct rb_root *root, u64 offset,
 	return NULL;
 }
 
-/*
- * look for an offset in the tree, and if it can't be found, return
- * the first offset we can find smaller than 'offset'.
- */
-static inline struct rb_node *tree_search(struct rb_root *root, u64 offset)
-{
-	struct rb_node *prev;
-	struct rb_node *ret;
-	ret = __tree_search(root, offset, &prev, NULL);
-	if (!ret)
-		return prev;
-	return ret;
-}
-
 /* check to see if two extent_map structs are adjacent and safe to merge */
 static int mergable_maps(struct extent_map *prev, struct extent_map *next)
 {
Signature · 1 line
1.6.2.2
#1 lore raw
Quoted 2 lines · Miao Xie

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

Thank you, I've queued this one up.

-chris