tools: Add kmem_cache_alloc_lru()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 22 Apr 2022 17:20:21 +0000 (13:20 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 22 Apr 2022 18:24:28 +0000 (14:24 -0400)
commitb9663a6ff8289a095d56d9a3a3f9c185a7b7b0d7
treeb5c086c475a18cc04f7c076a6b0623d7c131bf18
parent281b9d9a4b02229b602a14f7540206b0fbe4134f
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>
tools/include/linux/slab.h
tools/testing/radix-tree/linux.c