History

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.

Steve Hodgson committed 14 years ago

Commit 96b62061 parent c957b611 file · +1 −0Browse files

Unified · Split

lib/btree.c+1−0
@@ -357,6 +357,7 @@ miss: · 356 unmodified lines
357357 }
358358 return NULL;
359359 }
360+EXPORT_SYMBOL_GPL(btree_get_prev);
360361
361362 static int getpos(struct btree_geo *geo, unsigned long *node,
362363 unsigned long *key)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t