Searched refs:cachep (Results 1 – 5 of 5) sorted by relevance
/mm/ |
D | slab.c | 210 static void free_block(struct kmem_cache *cachep, void **objpp, int len, 212 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list); 213 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp); 216 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, 218 static inline void fixup_slab_list(struct kmem_cache *cachep, 239 #define MAKE_LIST(cachep, listp, slab, nodeid) \ argument 242 list_splice(&get_node(cachep, nodeid)->slab, listp); \ 245 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument 247 MAKE_LIST((cachep), (&(ptr)->slabs_full), slabs_full, nodeid); \ 248 MAKE_LIST((cachep), (&(ptr)->slabs_partial), slabs_partial, nodeid); \ [all …]
|
D | slab.h | 222 struct kmem_cache *cachep; in cache_from_memcg_idx() local 233 cachep = lockless_dereference(arr->entries[idx]); in cache_from_memcg_idx() 236 return cachep; in cache_from_memcg_idx() 333 struct kmem_cache *cachep; in cache_from_obj() local 348 cachep = page->slab_cache; in cache_from_obj() 349 if (slab_equal_or_root(cachep, s)) in cache_from_obj() 350 return cachep; in cache_from_obj() 353 __func__, s->name, cachep->name); in cache_from_obj() 480 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, 482 void cache_random_seq_destroy(struct kmem_cache *cachep); [all …]
|
D | slab_common.c | 779 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument 785 kasan_cache_shrink(cachep); in kmem_cache_shrink() 786 ret = __kmem_cache_shrink(cachep); in kmem_cache_shrink() 1081 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument 1086 if (count < 2 || cachep->random_seq) in cache_random_seq_create() 1089 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create() 1090 if (!cachep->random_seq) in cache_random_seq_create() 1096 freelist_randomize(&state, cachep->random_seq, count); in cache_random_seq_create() 1101 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument 1103 kfree(cachep->random_seq); in cache_random_seq_destroy() [all …]
|
D | slob.c | 562 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc() argument 564 return slob_alloc_node(cachep, flags, NUMA_NO_NODE); in kmem_cache_alloc() 575 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node() argument 577 return slob_alloc_node(cachep, gfp, node); in kmem_cache_alloc_node()
|
D | memcontrol.c | 2154 struct kmem_cache *cachep; member 2165 struct kmem_cache *cachep = cw->cachep; in memcg_kmem_cache_create_func() local 2167 memcg_create_kmem_cache(memcg, cachep); in memcg_kmem_cache_create_func() 2177 struct kmem_cache *cachep) in __memcg_schedule_kmem_cache_create() argument 2188 cw->cachep = cachep; in __memcg_schedule_kmem_cache_create() 2195 struct kmem_cache *cachep) in memcg_schedule_kmem_cache_create() argument 2209 __memcg_schedule_kmem_cache_create(memcg, cachep); in memcg_schedule_kmem_cache_create() 2236 struct kmem_cache *memcg_kmem_get_cache(struct kmem_cache *cachep) in memcg_kmem_get_cache() argument 2242 VM_BUG_ON(!is_root_cache(cachep)); in memcg_kmem_get_cache() 2245 return cachep; in memcg_kmem_get_cache() [all …]
|