Lines Matching refs:kmem_cache

34 struct kmem_cache *kmem_cache;  variable
79 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
104 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk()
116 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
138 void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
146 static int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
147 struct kmem_cache *root_cache) in init_memcg_params()
179 static void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
198 static int update_memcg_params(struct kmem_cache *s, int new_array_size) in update_memcg_params()
221 struct kmem_cache *s; in memcg_update_all_caches()
238 void memcg_link_cache(struct kmem_cache *s, struct mem_cgroup *memcg) in memcg_link_cache()
252 static void memcg_unlink_cache(struct kmem_cache *s) in memcg_unlink_cache()
262 static inline int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
263 struct kmem_cache *root_cache) in init_memcg_params()
268 static inline void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
272 static inline void memcg_unlink_cache(struct kmem_cache *s) in memcg_unlink_cache()
309 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
332 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, in find_mergeable()
335 struct kmem_cache *s; in find_mergeable()
379 static struct kmem_cache *create_cache(const char *name, in create_cache()
383 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in create_cache()
385 struct kmem_cache *s; in create_cache()
392 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL); in create_cache()
421 kmem_cache_free(kmem_cache, s); in create_cache()
453 struct kmem_cache *
460 struct kmem_cache *s = NULL; in kmem_cache_create_usercopy()
560 struct kmem_cache *
572 struct kmem_cache *s, *s2; in slab_caches_to_rcu_destroy_workfn()
601 static int shutdown_cache(struct kmem_cache *s) in shutdown_cache()
641 struct kmem_cache *root_cache) in memcg_create_kmem_cache()
646 struct kmem_cache *s = NULL; in memcg_create_kmem_cache()
712 struct kmem_cache *s = container_of(work, struct kmem_cache, in kmemcg_workfn()
728 struct kmem_cache *s = container_of(head, struct kmem_cache, in kmemcg_rcufn()
740 static void kmemcg_cache_shutdown_fn(struct kmem_cache *s) in kmemcg_cache_shutdown_fn()
747 struct kmem_cache *s = container_of(percpu_ref, struct kmem_cache, in kmemcg_cache_shutdown()
763 static void kmemcg_cache_deactivate_after_rcu(struct kmem_cache *s) in kmemcg_cache_deactivate_after_rcu()
769 static void kmemcg_cache_deactivate(struct kmem_cache *s) in kmemcg_cache_deactivate()
797 struct kmem_cache *s, *c; in memcg_deactivate_kmem_caches()
834 static int shutdown_memcg_caches(struct kmem_cache *s) in shutdown_memcg_caches()
837 struct kmem_cache *c, *c2; in shutdown_memcg_caches()
889 static void flush_memcg_workqueue(struct kmem_cache *s) in flush_memcg_workqueue()
909 static inline int shutdown_memcg_caches(struct kmem_cache *s) in shutdown_memcg_caches()
914 static inline void flush_memcg_workqueue(struct kmem_cache *s) in flush_memcg_workqueue()
919 void slab_kmem_cache_release(struct kmem_cache *s) in slab_kmem_cache_release()
924 kmem_cache_free(kmem_cache, s); in slab_kmem_cache_release()
927 void kmem_cache_destroy(struct kmem_cache *s) in kmem_cache_destroy()
971 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
989 void kmem_cache_shrink_all(struct kmem_cache *s) in kmem_cache_shrink_all()
991 struct kmem_cache *c; in kmem_cache_shrink_all()
1029 void __init create_boot_cache(struct kmem_cache *s, const char *name, in create_boot_cache()
1061 struct kmem_cache *__init create_kmalloc_cache(const char *name, in create_kmalloc_cache()
1065 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
1077 struct kmem_cache *
1124 struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags) in kmalloc_slab()
1278 struct kmem_cache *s = kmalloc_caches[KMALLOC_NORMAL][i]; in create_kmalloc_caches()
1347 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create()
1367 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy()
1419 memcg_accumulate_slabinfo(struct kmem_cache *s, struct slabinfo *info) in memcg_accumulate_slabinfo()
1421 struct kmem_cache *c; in memcg_accumulate_slabinfo()
1439 static void cache_show(struct kmem_cache *s, struct seq_file *m) in cache_show()
1462 struct kmem_cache *s = list_entry(p, struct kmem_cache, root_caches_node); in slab_show()
1472 struct kmem_cache *s, *s2; in dump_unreclaimable_slab()
1527 struct kmem_cache *s = list_entry(p, struct kmem_cache, in memcg_slab_show()
1585 struct kmem_cache *s, *c; in memcg_slabinfo_show()
1789 int should_failslab(struct kmem_cache *s, gfp_t gfpflags) in should_failslab()