Skip to content

Commit

Permalink
Export the augmented rbtree helper functions
Browse files Browse the repository at this point in the history
The augmented rbtree helper functions are not exported to modules right
now.

(We have started using augmented rbtrees in the upcoming version of
drbd.)

Signed-off-by: Andreas Gruenbacher <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
andreas-gruenbacher authored and torvalds committed Jan 28, 2011
1 parent b12ece7 commit 0b6bb66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/rbtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ void rb_augment_insert(struct rb_node *node, rb_augment_f func, void *data)

rb_augment_path(node, func, data);
}
EXPORT_SYMBOL(rb_augment_insert);

/*
* before removing the node, find the deepest node on the rebalance path
Expand All @@ -340,6 +341,7 @@ struct rb_node *rb_augment_erase_begin(struct rb_node *node)

return deepest;
}
EXPORT_SYMBOL(rb_augment_erase_begin);

/*
* after removal, update the tree to account for the removed entry
Expand All @@ -350,6 +352,7 @@ void rb_augment_erase_end(struct rb_node *node, rb_augment_f func, void *data)
if (node)
rb_augment_path(node, func, data);
}
EXPORT_SYMBOL(rb_augment_erase_end);

/*
* This function returns the first node (in sort order) of the tree.
Expand Down

0 comments on commit 0b6bb66

Please sign in to comment.