rbtree: Introduce list find callback

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2020-11-09 14:36:39 +01:00
parent 0ae4f4b5b2
commit 8b03271626
4 changed files with 39 additions and 4 deletions

View File

@@ -77,7 +77,7 @@ void prepare(struct ocf_rb_tree *tree)
{
int i;
ocf_rb_tree_init(tree, test_cmp);
ocf_rb_tree_init(tree, test_cmp, NULL);
for (i = 0; i < nodes_number; i++)
ocf_rb_tree_insert(tree, &nodes[i].tree);