]> 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, 28 Aug 2025 20:19:58 +0000 (16:19 -0400)
commitc4a34c0e72eccaec3ebfcdee0a1cc3a724ff2c40
tree34614074bc60ef72620baf7d55f3aab49a12972b
parent7ce95b06ea6b3f282bb057954a1882120b781de2
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