From: Liam R. Howlett Date: Tue, 21 Nov 2023 18:02:15 +0000 (-0500) Subject: fix test code X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=432623f0f93d02321f59e7fbb61b4123608196d3;p=users%2Fjedix%2Flinux-maple.git fix test code Signed-off-by: Liam R. Howlett --- diff --git a/tools/testing/radix-tree/linux.c b/tools/testing/radix-tree/linux.c index 597590a2dd84..8af8efdf9a5e 100644 --- a/tools/testing/radix-tree/linux.c +++ b/tools/testing/radix-tree/linux.c @@ -217,9 +217,9 @@ int kmem_cache_prefill_percpu_array(struct kmem_cache *s, unsigned int count, gfp_t gfp) { if (count > s->non_kernel) - return s->non_kernel; + kmem_cache_set_non_kernel(s, count); - return count; + return 0; } struct kmem_cache *