]> www.infradead.org Git - users/jedix/linux-maple.git/commit
testing/radix-tree/maple: Hack around kfree_rcu not existing
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 12 Aug 2025 16:21:22 +0000 (17:21 +0100)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Thu, 4 Sep 2025 17:45:55 +0000 (13:45 -0400)
commit1418300bab5426d78d798953342d35e0efdfe649
tree783dcabc92b1ac7269d19af0323a5541c6bec121
parentc06f532ff804e7db87b9633f5d98c90d93f4aeff
testing/radix-tree/maple: Hack around kfree_rcu not existing

liburcu doesn't have kfree_rcu (or anything similar). Despite that, we
can hack around it in a trivial fashion, by adding a wrapper.

The wrapper only works for maple_nodes because we cannot get the
kmem_cache pointer any other way in the test code.

Link: https://lore.kernel.org/all/20250812162124.59417-1-pfalcato@suse.de/
Suggesed-by: Pedro Falcato <pfalcato@suse.de>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
tools/testing/radix-tree/maple.c
tools/testing/shared/maple-shared.h
tools/testing/shared/maple-shim.c