Searched refs:cachep (Results 1 – 5 of 5) sorted by relevance
/mm/ |
D | slab.c | 211 static void free_block(struct kmem_cache *cachep, void **objpp, int len, 213 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list); 214 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp); 217 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, 219 static inline void fixup_slab_list(struct kmem_cache *cachep, 241 #define MAKE_LIST(cachep, listp, slab, nodeid) \ argument 244 list_splice(&get_node(cachep, nodeid)->slab, listp); \ 247 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument 249 MAKE_LIST((cachep), (&(ptr)->slabs_full), slabs_full, nodeid); \ 250 MAKE_LIST((cachep), (&(ptr)->slabs_partial), slabs_partial, nodeid); \ [all …]
|
D | slab.h | 506 struct kmem_cache *cachep; in cache_from_obj() local 520 cachep = virt_to_cache(x); in cache_from_obj() 521 WARN_ONCE(cachep && !slab_equal_or_root(cachep, s), in cache_from_obj() 523 __func__, s->name, cachep->name); in cache_from_obj() 524 return cachep; in cache_from_obj() 662 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, 664 void cache_random_seq_destroy(struct kmem_cache *cachep); 666 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument 671 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
|
D | slab_common.c | 984 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument 990 kasan_cache_shrink(cachep); in kmem_cache_shrink() 991 ret = __kmem_cache_shrink(cachep); in kmem_cache_shrink() 1360 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument 1365 if (count < 2 || cachep->random_seq) in cache_random_seq_create() 1368 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create() 1369 if (!cachep->random_seq) in cache_random_seq_create() 1375 freelist_randomize(&state, cachep->random_seq, count); in cache_random_seq_create() 1380 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument 1382 kfree(cachep->random_seq); in cache_random_seq_destroy() [all …]
|
D | slob.c | 622 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc() argument 624 return slob_alloc_node(cachep, flags, NUMA_NO_NODE); in kmem_cache_alloc() 635 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node() argument 637 return slob_alloc_node(cachep, gfp, node); in kmem_cache_alloc_node()
|
D | memcontrol.c | 2803 struct kmem_cache *cachep; member 2812 struct kmem_cache *cachep = cw->cachep; in memcg_kmem_cache_create_func() local 2814 memcg_create_kmem_cache(memcg, cachep); in memcg_kmem_cache_create_func() 2824 struct kmem_cache *cachep) in memcg_schedule_kmem_cache_create() argument 2836 cw->cachep = cachep; in memcg_schedule_kmem_cache_create() 2865 struct kmem_cache *memcg_kmem_get_cache(struct kmem_cache *cachep) in memcg_kmem_get_cache() argument 2872 VM_BUG_ON(!is_root_cache(cachep)); in memcg_kmem_get_cache() 2875 return cachep; in memcg_kmem_get_cache() 2891 arr = rcu_dereference(cachep->memcg_params.memcg_caches); in memcg_kmem_get_cache() 2920 memcg_schedule_kmem_cache_create(memcg, cachep); in memcg_kmem_get_cache() [all …]
|