xref: /linux/tools/testing/shared/maple-shim.c (revision 24d9e8b3c9c8a6f72c8b4c196a703e144928d919)
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 
3 /* Very simple shim around the maple tree. */
4 
5 #include "maple-shared.h"
6 #include <linux/slab.h>
7 
8 #include "../../../lib/maple_tree.c"
9 
10 void maple_rcu_cb(struct rcu_head *head) {
11 	struct maple_node *node = container_of(head, struct maple_node, rcu);
12 
13 	kmem_cache_free(maple_node_cache, node);
14 }
15