/linux-4.1.27/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); \ 354 static int obj_offset(struct kmem_cache *cachep) in obj_offset() argument [all …]
|
D | slab.h | 209 struct kmem_cache *cachep; in cache_from_memcg_idx() local 220 cachep = lockless_dereference(arr->entries[idx]); in cache_from_memcg_idx() 223 return cachep; in cache_from_memcg_idx() 304 struct kmem_cache *cachep; in cache_from_obj() local 318 cachep = page->slab_cache; in cache_from_obj() 319 if (slab_equal_or_root(cachep, s)) in cache_from_obj() 320 return cachep; in cache_from_obj() 323 __func__, cachep->name, s->name); in cache_from_obj()
|
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 | 2560 struct kmem_cache *cachep; member 2569 struct kmem_cache *cachep = cw->cachep; in memcg_kmem_cache_create_func() local 2571 memcg_create_kmem_cache(memcg, cachep); in memcg_kmem_cache_create_func() 2581 struct kmem_cache *cachep) in __memcg_schedule_kmem_cache_create() argument 2592 cw->cachep = cachep; in __memcg_schedule_kmem_cache_create() 2599 struct kmem_cache *cachep) in memcg_schedule_kmem_cache_create() argument 2613 __memcg_schedule_kmem_cache_create(memcg, cachep); in memcg_schedule_kmem_cache_create() 2630 struct kmem_cache *__memcg_kmem_get_cache(struct kmem_cache *cachep) in __memcg_kmem_get_cache() argument 2636 VM_BUG_ON(!is_root_cache(cachep)); in __memcg_kmem_get_cache() 2639 return cachep; in __memcg_kmem_get_cache() [all …]
|
D | slab_common.c | 657 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument 663 ret = __kmem_cache_shrink(cachep, false); in kmem_cache_shrink()
|
/linux-4.1.27/include/linux/ |
D | memcontrol.h | 439 struct kmem_cache *__memcg_kmem_get_cache(struct kmem_cache *cachep); 440 void __memcg_kmem_put_cache(struct kmem_cache *cachep); 523 memcg_kmem_get_cache(struct kmem_cache *cachep, gfp_t gfp) in memcg_kmem_get_cache() argument 526 return cachep; in memcg_kmem_get_cache() 528 return cachep; in memcg_kmem_get_cache() 530 return cachep; in memcg_kmem_get_cache() 532 return cachep; in memcg_kmem_get_cache() 534 return cachep; in memcg_kmem_get_cache() 536 return __memcg_kmem_get_cache(cachep); in memcg_kmem_get_cache() 539 static __always_inline void memcg_kmem_put_cache(struct kmem_cache *cachep) in memcg_kmem_put_cache() argument [all …]
|
/linux-4.1.27/kernel/ |
D | pid_namespace.c | 25 struct kmem_cache *cachep; member 41 struct kmem_cache *cachep; in create_pid_cachep() local 53 cachep = kmem_cache_create(pcache->name, in create_pid_cachep() 56 if (cachep == NULL) in create_pid_cachep() 60 pcache->cachep = cachep; in create_pid_cachep() 64 return pcache->cachep; in create_pid_cachep()
|
/linux-4.1.27/arch/powerpc/mm/ |
D | hugetlbpage.c | 118 struct kmem_cache *cachep; in __hugepte_alloc() local 124 cachep = hugepte_cache; in __hugepte_alloc() 126 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc() 129 new = kmem_cache_zalloc(cachep, GFP_KERNEL|__GFP_REPEAT); in __hugepte_alloc() 156 kmem_cache_free(cachep, new); in __hugepte_alloc() 160 kmem_cache_free(cachep, new); in __hugepte_alloc()
|
/linux-4.1.27/net/ipv4/ |
D | inet_hashtables.c | 60 struct inet_bind_bucket *inet_bind_bucket_create(struct kmem_cache *cachep, in inet_bind_bucket_create() argument 65 struct inet_bind_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind_bucket_create() 82 void inet_bind_bucket_destroy(struct kmem_cache *cachep, struct inet_bind_bucket *tb) in inet_bind_bucket_destroy() argument 86 kmem_cache_free(cachep, tb); in inet_bind_bucket_destroy()
|
/linux-4.1.27/include/net/ |
D | inet_hashtables.h | 218 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net, 221 void inet_bind_bucket_destroy(struct kmem_cache *cachep,
|
/linux-4.1.27/Documentation/RCU/ |
D | rculist_nulls.txt | 106 kmem_cache_free(cachep, obj); 160 obj = kmem_cache_alloc(cachep);
|
/linux-4.1.27/fs/gfs2/ |
D | glock.c | 711 struct kmem_cache *cachep; in gfs2_glock_get() local 724 cachep = gfs2_glock_aspace_cachep; in gfs2_glock_get() 726 cachep = gfs2_glock_cachep; in gfs2_glock_get() 727 gl = kmem_cache_alloc(cachep, GFP_NOFS); in gfs2_glock_get() 736 kmem_cache_free(cachep, gl); in gfs2_glock_get() 779 kmem_cache_free(cachep, gl); in gfs2_glock_get()
|
/linux-4.1.27/fs/ext4/ |
D | mballoc.c | 2333 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache() local 2335 BUG_ON(!cachep); in get_groupinfo_cache() 2336 return cachep; in get_groupinfo_cache() 2380 struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_add_groupinfo() local 2404 meta_group_info[i] = kmem_cache_zalloc(cachep, GFP_NOFS); in ext4_mb_add_groupinfo() 2462 struct kmem_cache *cachep; in ext4_mb_init_backend() local 2492 cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_init_backend() 2494 kmem_cache_free(cachep, ext4_get_group_info(sb, i)); in ext4_mb_init_backend() 2521 struct kmem_cache *cachep; in ext4_groupinfo_create_slab() local 2538 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab() [all …]
|
/linux-4.1.27/drivers/md/ |
D | dm.c | 3539 struct kmem_cache *cachep = NULL; in dm_alloc_md_mempools() local 3550 cachep = _io_cache; in dm_alloc_md_mempools() 3555 cachep = _rq_tio_cache; in dm_alloc_md_mempools() 3572 if (cachep) { in dm_alloc_md_mempools() 3573 pools->io_pool = mempool_create_slab_pool(pool_size, cachep); in dm_alloc_md_mempools()
|
/linux-4.1.27/fs/f2fs/ |
D | f2fs.h | 1143 static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc() argument 1148 entry = kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc()
|