Home
last modified time | relevance | path

Searched refs:cachep (Results 1 – 3 of 3) sorted by relevance

/mm/
A Dslab_common.c556 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()
[all …]
A Dslab.h601 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
603 void cache_random_seq_destroy(struct kmem_cache *cachep);
605 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument
610 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
A Dslub.c4754 struct kmem_cache *cachep; in cache_from_obj() local
4760 cachep = virt_to_cache(x); in cache_from_obj()
4761 if (WARN(cachep && cachep != s, in cache_from_obj()
4763 __func__, s->name, cachep->name)) in cache_from_obj()
4764 print_tracking(cachep, x); in cache_from_obj()
4765 return cachep; in cache_from_obj()

Completed in 24 milliseconds