aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/linux.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-22 13:20:21 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-04-22 14:24:28 -0400
commitb9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7 (patch)
treeb5c086c475a18cc04f7c076a6b0623d7c131bf18 /tools/testing/radix-tree/linux.c
parentMerge branch 'akpm' (patches from Andrew) (diff)
downloadlinux-dev-b9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7.tar.xz
linux-dev-b9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7.zip
tools: Add kmem_cache_alloc_lru()
Turn kmem_cache_alloc() into a wrapper around kmem_cache_alloc_lru(). Fixes: 9bbdc0f32409 ("xarray: use kmem_cache_alloc_lru to allocate xa_node") Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reported-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reported-by: Li Wang <liwang@redhat.com>
Diffstat (limited to '')
-rw-r--r--tools/testing/radix-tree/linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/radix-tree/linux.c b/tools/testing/radix-tree/linux.c
index 81539f543954..d5c1bcba86fe 100644
--- a/tools/testing/radix-tree/linux.c
+++ b/tools/testing/radix-tree/linux.c
@@ -25,7 +25,8 @@ struct kmem_cache {
void (*ctor)(void *);
};
-void *kmem_cache_alloc(struct kmem_cache *cachep, int gfp)
+void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *lru,
+ int gfp)
{
void *p;