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.
Unified · Split
| @@ -357,6 +357,7 @@ miss: · 356 unmodified lines | ||
| 357 | 357 | } |
| 358 | 358 | return NULL; |
| 359 | 359 | } |
| 360 | +EXPORT_SYMBOL_GPL(btree_get_prev); | |
| 360 | 361 | |
| 361 | 362 | static int getpos(struct btree_geo *geo, unsigned long *node, |
| 362 | 363 | unsigned long *key) |