Lines Matching refs:cachep
556 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument
558 kasan_cache_shrink(cachep); in kmem_cache_shrink()
560 return __kmem_cache_shrink(cachep); in kmem_cache_shrink()
1047 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument
1051 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
1054 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
1055 if (!cachep->random_seq) in cache_random_seq_create()
1058 freelist_randomize(cachep->random_seq, count); in cache_random_seq_create()
1063 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument
1065 kfree(cachep->random_seq); in cache_random_seq_destroy()
1066 cachep->random_seq = NULL; in cache_random_seq_destroy()