Lines Matching refs:kmem_cache

31 struct kmem_cache *kmem_cache;  variable
64 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
73 struct kmem_cache *s = NULL; in kmem_cache_sanity_check()
109 void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
116 static int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
117 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
143 static void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
149 static int update_memcg_params(struct kmem_cache *s, int new_array_size) in update_memcg_params()
175 struct kmem_cache *s; in memcg_update_all_caches()
192 static inline int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
193 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
198 static inline void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
206 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
226 struct kmem_cache *find_mergeable(size_t size, size_t align, in find_mergeable()
229 struct kmem_cache *s; in find_mergeable()
297 static struct kmem_cache *
300 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in do_kmem_cache_create()
302 struct kmem_cache *s; in do_kmem_cache_create()
306 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL); in do_kmem_cache_create()
333 kmem_cache_free(kmem_cache, s); in do_kmem_cache_create()
361 struct kmem_cache *
365 struct kmem_cache *s; in kmem_cache_create()
429 static int do_kmem_cache_shutdown(struct kmem_cache *s, in do_kmem_cache_shutdown()
453 struct kmem_cache *s, *s2; in do_kmem_cache_release()
478 struct kmem_cache *root_cache) in memcg_create_kmem_cache()
483 struct kmem_cache *s = NULL; in memcg_create_kmem_cache()
552 struct kmem_cache *s, *c; in memcg_deactivate_kmem_caches()
583 struct kmem_cache *s, *s2; in memcg_destroy_kmem_caches()
607 void slab_kmem_cache_release(struct kmem_cache *s) in slab_kmem_cache_release()
611 kmem_cache_free(kmem_cache, s); in slab_kmem_cache_release()
614 void kmem_cache_destroy(struct kmem_cache *s) in kmem_cache_destroy()
616 struct kmem_cache *c, *c2; in kmem_cache_destroy()
657 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
677 void __init create_boot_cache(struct kmem_cache *s, const char *name, size_t size, in create_boot_cache()
697 struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size, in create_kmalloc_cache()
700 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
711 struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1];
715 struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1];
761 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab()
858 struct kmem_cache *s = kmalloc_caches[i]; in create_kmalloc_caches()
871 struct kmem_cache *s = kmalloc_caches[i]; in create_kmalloc_caches()
964 memcg_accumulate_slabinfo(struct kmem_cache *s, struct slabinfo *info) in memcg_accumulate_slabinfo()
966 struct kmem_cache *c; in memcg_accumulate_slabinfo()
984 static void cache_show(struct kmem_cache *s, struct seq_file *m) in cache_show()
1007 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in slab_show()
1019 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in memcg_slab_show()