Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
btree: export btree_get_prev() so modules can use btree_for_each
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Steve Hodgson <[email protected]>
Acked-by: Joern Engel <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Steve Hodgson authored and torvalds committed Jan 11, 2012
1 parent c957b61 commit 96b6206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ void *btree_get_prev(struct btree_head *head, struct btree_geo *geo,
}
return NULL;
}
EXPORT_SYMBOL_GPL(btree_get_prev);

static int getpos(struct btree_geo *geo, unsigned long *node,
unsigned long *key)
Expand Down

0 comments on commit 96b6206

Please sign in to comment.