Searched refs:cachep (Results 1 – 5 of 5) sorted by relevance
/mm/ |
D | slab.c | 247 static void free_block(struct kmem_cache *cachep, void **objpp, int len, 249 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list); 250 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp); 270 #define MAKE_LIST(cachep, listp, slab, nodeid) \ argument 273 list_splice(&get_node(cachep, nodeid)->slab, listp); \ 276 #define MAKE_ALL_LISTS(cachep, ptr, nodeid) \ argument 278 MAKE_LIST((cachep), (&(ptr)->slabs_full), slabs_full, nodeid); \ 279 MAKE_LIST((cachep), (&(ptr)->slabs_partial), slabs_partial, nodeid); \ 280 MAKE_LIST((cachep), (&(ptr)->slabs_free), slabs_free, nodeid); \ 355 static int obj_offset(struct kmem_cache *cachep) in obj_offset() argument [all …]
|
D | slab.h | 215 struct kmem_cache *cachep; in cache_from_memcg_idx() local 226 cachep = lockless_dereference(arr->entries[idx]); in cache_from_memcg_idx() 229 return cachep; in cache_from_memcg_idx() 298 struct kmem_cache *cachep; in cache_from_obj() local 312 cachep = page->slab_cache; in cache_from_obj() 313 if (slab_equal_or_root(cachep, s)) in cache_from_obj() 314 return cachep; in cache_from_obj() 317 __func__, s->name, cachep->name); in cache_from_obj()
|
D | slob.c | 564 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc() argument 566 return slob_alloc_node(cachep, flags, NUMA_NO_NODE); in kmem_cache_alloc() 577 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node() argument 579 return slob_alloc_node(cachep, gfp, node); in kmem_cache_alloc_node()
|
D | memcontrol.c | 2305 struct kmem_cache *cachep; member 2314 struct kmem_cache *cachep = cw->cachep; in memcg_kmem_cache_create_func() local 2316 memcg_create_kmem_cache(memcg, cachep); in memcg_kmem_cache_create_func() 2326 struct kmem_cache *cachep) in __memcg_schedule_kmem_cache_create() argument 2337 cw->cachep = cachep; in __memcg_schedule_kmem_cache_create() 2344 struct kmem_cache *cachep) in memcg_schedule_kmem_cache_create() argument 2358 __memcg_schedule_kmem_cache_create(memcg, cachep); in memcg_schedule_kmem_cache_create() 2375 struct kmem_cache *__memcg_kmem_get_cache(struct kmem_cache *cachep) in __memcg_kmem_get_cache() argument 2381 VM_BUG_ON(!is_root_cache(cachep)); in __memcg_kmem_get_cache() 2384 return cachep; in __memcg_kmem_get_cache() [all …]
|
D | slab_common.c | 750 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument 756 kasan_cache_shrink(cachep); in kmem_cache_shrink() 757 ret = __kmem_cache_shrink(cachep, false); in kmem_cache_shrink()
|