Home
last modified time | relevance | path

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

/mm/
Dslab.c212 static void free_block(struct kmem_cache *cachep, void **objpp, int len,
214 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list);
215 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp);
218 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep,
220 static inline void fixup_slab_list(struct kmem_cache *cachep,
242 #define MAKE_LIST(cachep, listp, slab, nodeid) \ argument
245 list_splice(&get_node(cachep, nodeid)->slab, listp); \
248 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument
250 MAKE_LIST((cachep), (&(ptr)->slabs_full), slabs_full, nodeid); \
251 MAKE_LIST((cachep), (&(ptr)->slabs_partial), slabs_partial, nodeid); \
[all …]
Dslab.h503 struct kmem_cache *cachep; in cache_from_obj() local
509 cachep = virt_to_cache(x); in cache_from_obj()
510 if (WARN(cachep && cachep != s, in cache_from_obj()
512 __func__, s->name, cachep->name)) in cache_from_obj()
513 print_tracking(cachep, x); in cache_from_obj()
514 return cachep; in cache_from_obj()
658 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
660 void cache_random_seq_destroy(struct kmem_cache *cachep);
662 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument
667 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
Dslab_common.c535 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument
541 kasan_cache_shrink(cachep); in kmem_cache_shrink()
542 ret = __kmem_cache_shrink(cachep); in kmem_cache_shrink()
900 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument
905 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
908 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
909 if (!cachep->random_seq) in cache_random_seq_create()
915 freelist_randomize(&state, cachep->random_seq, count); in cache_random_seq_create()
920 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument
922 kfree(cachep->random_seq); in cache_random_seq_destroy()
[all …]
Dslob.c630 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc() argument
632 return slob_alloc_node(cachep, flags, NUMA_NO_NODE); in kmem_cache_alloc()
643 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node() argument
645 return slob_alloc_node(cachep, gfp, node); in kmem_cache_alloc_node()