Lines Matching defs:cachep
512 * @cachep: The cache to shrink.
519 int kmem_cache_shrink(struct kmem_cache *cachep)
525 kasan_cache_shrink(cachep);
526 ret = __kmem_cache_shrink(cachep);
878 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
883 if (count < 2 || cachep->random_seq)
886 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp);
887 if (!cachep->random_seq)
893 freelist_randomize(&state, cachep->random_seq, count);
898 void cache_random_seq_destroy(struct kmem_cache *cachep)
900 kfree(cachep->random_seq);
901 cachep->random_seq = NULL;