path: root/lib/btree.c
diff options
authorSteve Hodgson <steve@purestorage.com>2012-01-10 23:09:47 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-11 00:30:49 (GMT)
commit96b62067f970ff529c98913311d33f4b57b453dc (patch)
tree4e696c155b2cce6fd0068a9be2a0c09e42bb38d6 /lib/btree.c
parentc957b614bde8539416dcde8d702370ff30b1c662 (diff)
btree: export btree_get_prev() so modules can use btree_for_each
The btree_for_each API is implemented with macros that internally call btree_get_prev(), so if btree_get_prev() isn't exported then modules fail to link if they try to use one of the btree_for_each macros. Since the rest of the btree API is exported, we should keep things orthogonal and make this work too. Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Steve Hodgson <steve@purestorage.com> Acked-by: Joern Engel <joern@logfs.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/btree.c')
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/btree.c b/lib/btree.c
index 2a34392..e5ec1e9 100644
--- a/lib/btree.c
+++ b/lib/btree.c
@@ -357,6 +357,7 @@ miss:
return NULL;
static int getpos(struct btree_geo *geo, unsigned long *node,
unsigned long *key)

Privacy Policy