aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/btree.h
diff options
context:
space:
mode:
authorKent Overstreet <kmo@daterainc.com>2013-07-28 18:35:09 -0700
committerKent Overstreet <kmo@daterainc.com>2014-01-08 13:05:12 -0800
commit911c9610099f26e9e6ea3d1962ce24f53890b163 (patch)
tree21dc0ae5850dc64756974aedacc0380a3e01b12e /drivers/md/bcache/btree.h
parentbcache: Bkey indexing renaming (diff)
downloadlinux-dev-911c9610099f26e9e6ea3d1962ce24f53890b163.tar.xz
linux-dev-911c9610099f26e9e6ea3d1962ce24f53890b163.zip
bcache: Split out sort_extent_cmp()
Only use extent comparison for comparing extents, so we're not using START_KEY() on other key types (i.e. btree pointers) Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Diffstat (limited to 'drivers/md/bcache/btree.h')
-rw-r--r--drivers/md/bcache/btree.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/md/bcache/btree.h b/drivers/md/bcache/btree.h
index 580b01137264..2a5a8481f25e 100644
--- a/drivers/md/bcache/btree.h
+++ b/drivers/md/bcache/btree.h
@@ -225,13 +225,6 @@ static inline void set_gc_sectors(struct cache_set *c)
atomic_set(&c->sectors_to_gc, c->sb.bucket_size * c->nbuckets / 16);
}
-static inline struct bkey *bch_btree_iter_init(struct btree *b,
- struct btree_iter *iter,
- struct bkey *search)
-{
- return __bch_btree_iter_init(b, iter, search, b->sets);
-}
-
static inline bool bch_ptr_invalid(struct btree *b, const struct bkey *k)
{
if (b->level)