aboutsummaryrefslogtreecommitdiffstats
path: root/lib/btree.c
diff options
context:
space:
mode:
authorSteve Hodgson <steve@purestorage.com>2012-01-10 18:09:47 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-10 19:30:49 -0500
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')
-rw-r--r--lib/btree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/btree.c b/lib/btree.c
index 2a34392bcecc..e5ec1e9c1aa5 100644
--- a/lib/btree.c
+++ b/lib/btree.c
@@ -357,6 +357,7 @@ miss:
357 } 357 }
358 return NULL; 358 return NULL;
359} 359}
360EXPORT_SYMBOL_GPL(btree_get_prev);
360 361
361static int getpos(struct btree_geo *geo, unsigned long *node, 362static int getpos(struct btree_geo *geo, unsigned long *node,
362 unsigned long *key) 363 unsigned long *key)