diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-22 20:20:21 +0300 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-04-22 21:24:28 +0300 |
commit | b9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7 (patch) | |
tree | b5c086c475a18cc04f7c076a6b0623d7c131bf18 /tools/testing/radix-tree | |
parent | 281b9d9a4b02229b602a14f7540206b0fbe4134f (diff) | |
download | linux-b9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7.tar.xz |
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 'tools/testing/radix-tree')
-rw-r--r-- | tools/testing/radix-tree/linux.c | 3 |
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; |