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
10void maple_rcu_cb(struct rcu_head *head) {
11 struct maple_node *node = container_of(head, struct maple_node, rcu);
12
13 kmem_cache_free(s: maple_node_cache, objp: node);
14}
15

source code of linux/tools/testing/shared/maple-shim.c