Lines Matching refs:kmem_cache

31 struct kmem_cache *kmem_cache;  variable
63 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
72 struct kmem_cache *s = NULL; in kmem_cache_sanity_check()
107 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk()
115 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
131 void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
138 static int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
139 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
165 static void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
171 static int update_memcg_params(struct kmem_cache *s, int new_array_size) in update_memcg_params()
197 struct kmem_cache *s; in memcg_update_all_caches()
214 static inline int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
215 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
220 static inline void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
228 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
248 struct kmem_cache *find_mergeable(size_t size, size_t align, in find_mergeable()
251 struct kmem_cache *s; in find_mergeable()
319 static struct kmem_cache *create_cache(const char *name, in create_cache()
322 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in create_cache()
324 struct kmem_cache *s; in create_cache()
328 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL); in create_cache()
355 kmem_cache_free(kmem_cache, s); in create_cache()
383 struct kmem_cache *
387 struct kmem_cache *s = NULL; in kmem_cache_create()
450 static int shutdown_cache(struct kmem_cache *s, in shutdown_cache()
465 struct kmem_cache *s, *s2; in release_caches()
490 struct kmem_cache *root_cache) in memcg_create_kmem_cache()
495 struct kmem_cache *s = NULL; in memcg_create_kmem_cache()
564 struct kmem_cache *s, *c; in memcg_deactivate_kmem_caches()
591 static int __shutdown_memcg_cache(struct kmem_cache *s, in __shutdown_memcg_cache()
607 struct kmem_cache *s, *s2; in memcg_destroy_kmem_caches()
630 static int shutdown_memcg_caches(struct kmem_cache *s, in shutdown_memcg_caches()
634 struct kmem_cache *c, *c2; in shutdown_memcg_caches()
686 static inline int shutdown_memcg_caches(struct kmem_cache *s, in shutdown_memcg_caches()
693 void slab_kmem_cache_release(struct kmem_cache *s) in slab_kmem_cache_release()
697 kmem_cache_free(kmem_cache, s); in slab_kmem_cache_release()
700 void kmem_cache_destroy(struct kmem_cache *s) in kmem_cache_destroy()
744 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
764 void __init create_boot_cache(struct kmem_cache *s, const char *name, size_t size, in create_boot_cache()
784 struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size, in create_kmalloc_cache()
787 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
798 struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1];
802 struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1];
848 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab()
980 struct kmem_cache *s = kmalloc_caches[i]; in create_kmalloc_caches()
1073 memcg_accumulate_slabinfo(struct kmem_cache *s, struct slabinfo *info) in memcg_accumulate_slabinfo()
1075 struct kmem_cache *c; in memcg_accumulate_slabinfo()
1093 static void cache_show(struct kmem_cache *s, struct seq_file *m) in cache_show()
1116 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in slab_show()
1128 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in memcg_slab_show()