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()
108 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk()
120 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
136 void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
143 static int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
144 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
170 static void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
176 static int update_memcg_params(struct kmem_cache *s, int new_array_size) in update_memcg_params()
202 struct kmem_cache *s; in memcg_update_all_caches()
219 static inline int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
220 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
225 static inline void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
233 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
253 struct kmem_cache *find_mergeable(size_t size, size_t align, in find_mergeable()
256 struct kmem_cache *s; in find_mergeable()
327 static struct kmem_cache *create_cache(const char *name, in create_cache()
330 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in create_cache()
332 struct kmem_cache *s; in create_cache()
336 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL); in create_cache()
363 kmem_cache_free(kmem_cache, s); in create_cache()
391 struct kmem_cache *
395 struct kmem_cache *s = NULL; in kmem_cache_create()
458 static int shutdown_cache(struct kmem_cache *s, in shutdown_cache()
476 struct kmem_cache *s, *s2; in release_caches()
501 struct kmem_cache *root_cache) in memcg_create_kmem_cache()
506 struct kmem_cache *s = NULL; in memcg_create_kmem_cache()
575 struct kmem_cache *s, *c; in memcg_deactivate_kmem_caches()
625 static int __shutdown_memcg_cache(struct kmem_cache *s, in __shutdown_memcg_cache()
641 struct kmem_cache *s, *s2; in memcg_destroy_kmem_caches()
664 static int shutdown_memcg_caches(struct kmem_cache *s, in shutdown_memcg_caches()
668 struct kmem_cache *c, *c2; in shutdown_memcg_caches()
720 static inline int shutdown_memcg_caches(struct kmem_cache *s, in shutdown_memcg_caches()
727 void slab_kmem_cache_release(struct kmem_cache *s) in slab_kmem_cache_release()
732 kmem_cache_free(kmem_cache, s); in slab_kmem_cache_release()
735 void kmem_cache_destroy(struct kmem_cache *s) in kmem_cache_destroy()
779 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
800 void __init create_boot_cache(struct kmem_cache *s, const char *name, size_t size, in create_boot_cache()
820 struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size, in create_kmalloc_cache()
823 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
834 struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1];
838 struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1];
884 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab()
1016 struct kmem_cache *s = kmalloc_caches[i]; in create_kmalloc_caches()
1081 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create()
1101 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy()
1154 memcg_accumulate_slabinfo(struct kmem_cache *s, struct slabinfo *info) in memcg_accumulate_slabinfo()
1156 struct kmem_cache *c; in memcg_accumulate_slabinfo()
1174 static void cache_show(struct kmem_cache *s, struct seq_file *m) in cache_show()
1197 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in slab_show()
1209 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in memcg_slab_show()