diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2009-12-15 06:54:17 +0000 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-01-28 16:20:38 -0500 |
commit | b8d9bfeb18f9af794020d96e9bee984d18a8d737 (patch) | |
tree | 1f71e31e423562b45c895cc4b24c62541b0b891d | |
parent | a555f810af6d63ea5960abaed88e150ad95c3011 (diff) | |
download | op-kernel-dev-b8d9bfeb18f9af794020d96e9bee984d18a8d737.zip op-kernel-dev-b8d9bfeb18f9af794020d96e9bee984d18a8d737.tar.gz |
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>
-rw-r--r-- | fs/btrfs/extent_map.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index ccbdcb5..5a4f73b 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -155,20 +155,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) { |