]> www.infradead.org Git - users/jedix/linux-maple.git/commit
radix tree test suite: add kmem_cache_set_non_kernel()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 14 Apr 2022 06:07:11 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:11 +0000 (23:07 -0700)
commit541dc977e257a3e929907af4ba57757e315d1cd1
treeffb9fe903378781f53aeb0c9e7eb1c2afc210717
parent1d4745c46646e34cb1381d90a818db4ce8e99bed
radix tree test suite: add kmem_cache_set_non_kernel()

kmem_cache_set_non_kernel() is a mechanism to allow a certain number of
kmem_cache_alloc requests to succeed even when GFP_KERNEL is not set in
the flags.  This functionality allows for testing different paths though
the code.

Link: https://lkml.kernel.org/r/20220404143501.2016403-3-Liam.Howlett@oracle.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/radix-tree/linux.c