Lines Matching refs:kmem_cache
33 struct kmem_cache *kmem_cache; variable
78 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
103 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()
134 void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
142 static int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
143 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()
184 static int update_memcg_params(struct kmem_cache *s, int new_array_size) in update_memcg_params()
207 struct kmem_cache *s; in memcg_update_all_caches()
224 void memcg_link_cache(struct kmem_cache *s) in memcg_link_cache()
236 static void memcg_unlink_cache(struct kmem_cache *s) in memcg_unlink_cache()
246 static inline int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
247 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
252 static inline void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
256 static inline void memcg_unlink_cache(struct kmem_cache *s) in memcg_unlink_cache()
293 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
316 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, in find_mergeable()
319 struct kmem_cache *s; in find_mergeable()
363 static struct kmem_cache *create_cache(const char *name, in create_cache()
367 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in create_cache()
369 struct kmem_cache *s; in create_cache()
376 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL); in create_cache()
405 kmem_cache_free(kmem_cache, s); in create_cache()
435 struct kmem_cache *
442 struct kmem_cache *s = NULL; in kmem_cache_create_usercopy()
517 struct kmem_cache *
529 struct kmem_cache *s, *s2; in slab_caches_to_rcu_destroy_workfn()
558 static int shutdown_cache(struct kmem_cache *s) in shutdown_cache()
598 struct kmem_cache *root_cache) in memcg_create_kmem_cache()
603 struct kmem_cache *s = NULL; in memcg_create_kmem_cache()
669 struct kmem_cache *s = container_of(work, struct kmem_cache, in kmemcg_deactivate_workfn()
690 struct kmem_cache *s = container_of(head, struct kmem_cache, in kmemcg_deactivate_rcufn()
713 void slab_deactivate_memcg_cache_rcu_sched(struct kmem_cache *s, in slab_deactivate_memcg_cache_rcu_sched()
714 void (*deact_fn)(struct kmem_cache *)) in slab_deactivate_memcg_cache_rcu_sched() argument
734 struct kmem_cache *s, *c; in memcg_deactivate_kmem_caches()
760 struct kmem_cache *s, *s2; in memcg_destroy_kmem_caches()
780 static int shutdown_memcg_caches(struct kmem_cache *s) in shutdown_memcg_caches()
783 struct kmem_cache *c, *c2; in shutdown_memcg_caches()
835 static void flush_memcg_workqueue(struct kmem_cache *s) in flush_memcg_workqueue()
856 static inline int shutdown_memcg_caches(struct kmem_cache *s) in shutdown_memcg_caches()
861 static inline void flush_memcg_workqueue(struct kmem_cache *s) in flush_memcg_workqueue()
866 void slab_kmem_cache_release(struct kmem_cache *s) in slab_kmem_cache_release()
871 kmem_cache_free(kmem_cache, s); in slab_kmem_cache_release()
874 void kmem_cache_destroy(struct kmem_cache *s) in kmem_cache_destroy()
916 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
937 void __init create_boot_cache(struct kmem_cache *s, const char *name, in create_boot_cache()
960 struct kmem_cache *__init create_kmalloc_cache(const char *name, in create_kmalloc_cache()
964 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
976 struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1] __ro_after_init;
980 struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1] __ro_after_init;
1026 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab()
1156 struct kmem_cache *s = kmalloc_caches[i]; in create_kmalloc_caches()
1221 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create()
1241 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy()
1293 memcg_accumulate_slabinfo(struct kmem_cache *s, struct slabinfo *info) in memcg_accumulate_slabinfo()
1295 struct kmem_cache *c; in memcg_accumulate_slabinfo()
1313 static void cache_show(struct kmem_cache *s, struct seq_file *m) in cache_show()
1336 struct kmem_cache *s = list_entry(p, struct kmem_cache, root_caches_node); in slab_show()
1346 struct kmem_cache *s, *s2; in dump_unreclaimable_slab()
1401 struct kmem_cache *s = list_entry(p, struct kmem_cache, in memcg_slab_show()
1555 int should_failslab(struct kmem_cache *s, gfp_t gfpflags) in should_failslab()