Home
last modified time | relevance | path

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

/linux-4.4.14/mm/
Dslab.c247 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 …]
Dslab.h215 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()
Dslob.c562 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()
Dmemcontrol.c2291 struct kmem_cache *cachep; member
2300 struct kmem_cache *cachep = cw->cachep; in memcg_kmem_cache_create_func() local
2302 memcg_create_kmem_cache(memcg, cachep); in memcg_kmem_cache_create_func()
2312 struct kmem_cache *cachep) in __memcg_schedule_kmem_cache_create() argument
2323 cw->cachep = cachep; in __memcg_schedule_kmem_cache_create()
2330 struct kmem_cache *cachep) in memcg_schedule_kmem_cache_create() argument
2344 __memcg_schedule_kmem_cache_create(memcg, cachep); in memcg_schedule_kmem_cache_create()
2361 struct kmem_cache *__memcg_kmem_get_cache(struct kmem_cache *cachep) in __memcg_kmem_get_cache() argument
2367 VM_BUG_ON(!is_root_cache(cachep)); in __memcg_kmem_get_cache()
2370 return cachep; in __memcg_kmem_get_cache()
[all …]
Dslab_common.c744 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument
750 ret = __kmem_cache_shrink(cachep, false); in kmem_cache_shrink()
/linux-4.4.14/include/linux/
Dmemcontrol.h769 struct kmem_cache *__memcg_kmem_get_cache(struct kmem_cache *cachep);
770 void __memcg_kmem_put_cache(struct kmem_cache *cachep);
818 memcg_kmem_get_cache(struct kmem_cache *cachep, gfp_t gfp) in memcg_kmem_get_cache() argument
821 return cachep; in memcg_kmem_get_cache()
822 return __memcg_kmem_get_cache(cachep); in memcg_kmem_get_cache()
825 static __always_inline void memcg_kmem_put_cache(struct kmem_cache *cachep) in memcg_kmem_put_cache() argument
828 __memcg_kmem_put_cache(cachep); in memcg_kmem_put_cache()
867 memcg_kmem_get_cache(struct kmem_cache *cachep, gfp_t gfp) in memcg_kmem_get_cache() argument
869 return cachep; in memcg_kmem_get_cache()
872 static inline void memcg_kmem_put_cache(struct kmem_cache *cachep) in memcg_kmem_put_cache() argument
/linux-4.4.14/kernel/
Dpid_namespace.c25 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.4.14/drivers/scsi/snic/
Dsnic_main.c850 struct kmem_cache *cachep; in snic_global_data_init() local
888 cachep = kmem_cache_create("snic_req_dfltsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
890 if (!cachep) { in snic_global_data_init()
896 snic_glob->req_cache[SNIC_REQ_CACHE_DFLT_SGL] = cachep; in snic_global_data_init()
901 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
903 if (!cachep) { in snic_global_data_init()
909 snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep; in snic_global_data_init()
912 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
914 if (!cachep) { in snic_global_data_init()
920 snic_glob->req_cache[SNIC_REQ_TM_CACHE] = cachep; in snic_global_data_init()
/linux-4.4.14/arch/powerpc/mm/
Dhugetlbpage.c137 struct kmem_cache *cachep; in __hugepte_alloc() local
143 cachep = hugepte_cache; in __hugepte_alloc()
145 cachep = PGT_CACHE(pdshift - pshift); in __hugepte_alloc()
148 new = kmem_cache_zalloc(cachep, GFP_KERNEL|__GFP_REPEAT); in __hugepte_alloc()
175 kmem_cache_free(cachep, new); in __hugepte_alloc()
179 kmem_cache_free(cachep, new); in __hugepte_alloc()
/linux-4.4.14/net/ipv4/
Dinet_hashtables.c61 struct inet_bind_bucket *inet_bind_bucket_create(struct kmem_cache *cachep, in inet_bind_bucket_create() argument
66 struct inet_bind_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind_bucket_create()
83 void inet_bind_bucket_destroy(struct kmem_cache *cachep, struct inet_bind_bucket *tb) in inet_bind_bucket_destroy() argument
87 kmem_cache_free(cachep, tb); in inet_bind_bucket_destroy()
/linux-4.4.14/include/net/
Dinet_hashtables.h175 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net,
178 void inet_bind_bucket_destroy(struct kmem_cache *cachep,
/linux-4.4.14/Documentation/RCU/
Drculist_nulls.txt106 kmem_cache_free(cachep, obj);
160 obj = kmem_cache_alloc(cachep);
/linux-4.4.14/fs/gfs2/
Dglock.c651 struct kmem_cache *cachep; in gfs2_glock_get() local
665 cachep = gfs2_glock_aspace_cachep; in gfs2_glock_get()
667 cachep = gfs2_glock_cachep; in gfs2_glock_get()
668 gl = kmem_cache_alloc(cachep, GFP_NOFS); in gfs2_glock_get()
677 kmem_cache_free(cachep, gl); in gfs2_glock_get()
737 kmem_cache_free(cachep, gl); in gfs2_glock_get()
/linux-4.4.14/fs/ext4/
Dmballoc.c2356 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache() local
2358 BUG_ON(!cachep); in get_groupinfo_cache()
2359 return cachep; in get_groupinfo_cache()
2403 struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_add_groupinfo() local
2427 meta_group_info[i] = kmem_cache_zalloc(cachep, GFP_NOFS); in ext4_mb_add_groupinfo()
2485 struct kmem_cache *cachep; in ext4_mb_init_backend() local
2515 cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_init_backend()
2517 kmem_cache_free(cachep, ext4_get_group_info(sb, i)); in ext4_mb_init_backend()
2544 struct kmem_cache *cachep; in ext4_groupinfo_create_slab() local
2561 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab()
[all …]
/linux-4.4.14/drivers/md/
Ddm.c3487 struct kmem_cache *cachep = NULL; in dm_alloc_md_mempools() local
3498 cachep = _io_cache; in dm_alloc_md_mempools()
3503 cachep = _rq_tio_cache; in dm_alloc_md_mempools()
3520 if (cachep) { in dm_alloc_md_mempools()
3521 pools->io_pool = mempool_create_slab_pool(pool_size, cachep); in dm_alloc_md_mempools()
/linux-4.4.14/fs/f2fs/
Df2fs.h1283 static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc() argument
1288 entry = kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc()
1290 entry = kmem_cache_alloc(cachep, flags | __GFP_NOFAIL); in f2fs_kmem_cache_alloc()