Linux-6.18.2/tools/testing/shared/maple-shim.c
2025-12-23 20:06:59 +08:00

15 lines
341 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/* 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);
}