maple-shim.c 341 B

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