summaryrefslogtreecommitdiff
path: root/tools/testing/shared/maple-shim.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/shared/maple-shim.c')
-rw-r--r--tools/testing/shared/maple-shim.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/shared/maple-shim.c b/tools/testing/shared/maple-shim.c
index 640df76f483e..16252ee616c0 100644
--- a/tools/testing/shared/maple-shim.c
+++ b/tools/testing/shared/maple-shim.c
@@ -3,5 +3,12 @@
/* Very simple shim around the maple tree. */
#include "maple-shared.h"
+#include <linux/slab.h>
#include "../../../lib/maple_tree.c"
+
+void maple_rcu_cb(struct rcu_head *head) {
+ struct maple_node *node = container_of(head, struct maple_node, rcu);
+
+ kmem_cache_free(maple_node_cache, node);
+}