diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2022-04-22 17:20:21 +0000 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2022-04-22 18:24:28 +0000 |
| commit | b9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7 (patch) | |
| tree | b5c086c475a18cc04f7c076a6b0623d7c131bf18 /tools/testing/radix-tree/linux.c | |
| parent | Merge branch 'akpm' (patches from Andrew) (diff) | |
| download | kernel-b9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7.tar.gz kernel-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) <[email protected]>
Reported-by: Liam R. Howlett <[email protected]>
Reported-by: Li Wang <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/linux.c')
| -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; |
