Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8d9bfeb authored by Miao Xie's avatar Miao Xie Committed by Chris Mason
Browse files

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: default avatarMiao Xie <miaox@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent a555f810
Loading
Loading
Loading
Loading
+0 −14
Original line number Original line Diff line number Diff line
@@ -155,20 +155,6 @@ static struct rb_node *__tree_search(struct rb_root *root, u64 offset,
	return NULL;
	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 */
/* 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)
static int mergable_maps(struct extent_map *prev, struct extent_map *next)
{
{