Lines Matching refs:array_cache

189 struct array_cache {  struct
207 struct array_cache ac;
233 struct array_cache cache;
473 static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) in cpu_cache_get()
661 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache()
679 static struct array_cache *alloc_arraycache(int node, int entries, in alloc_arraycache()
682 size_t memsize = sizeof(void *) * entries + sizeof(struct array_cache); in alloc_arraycache()
683 struct array_cache *ac = NULL; in alloc_arraycache()
697 struct array_cache *ac) in recheck_pfmemalloc_active()
724 static void *__ac_get_obj(struct kmem_cache *cachep, struct array_cache *ac, in __ac_get_obj()
772 struct array_cache *ac, gfp_t flags, bool force_refill) in ac_get_obj()
785 struct array_cache *ac, void *objp) in __ac_put_obj()
797 static inline void ac_put_obj(struct kmem_cache *cachep, struct array_cache *ac, in ac_put_obj()
812 static int transfer_objects(struct array_cache *to, in transfer_objects()
813 struct array_cache *from, unsigned int max) in transfer_objects()
921 struct array_cache *ac, int node, in __drain_alien_cache()
951 struct array_cache *ac; in reap_alien()
971 struct array_cache *ac; in drain_alien_cache()
993 struct array_cache *ac; in __cache_free_alien()
1104 struct array_cache *nc; in cpuup_canceled()
1105 struct array_cache *shared; in cpuup_canceled()
1186 struct array_cache *shared = NULL; in cpuup_prepare()
1992 static struct array_cache __percpu *alloc_kmem_cache_cpus( in alloc_kmem_cache_cpus()
1997 struct array_cache __percpu *cpu_cache; in alloc_kmem_cache_cpus()
1999 size = sizeof(void *) * entries + sizeof(struct array_cache); in alloc_kmem_cache_cpus()
2320 struct array_cache *ac,
2326 struct array_cache *ac; in do_drain()
2764 struct array_cache *ac; in cache_alloc_refill()
2931 struct array_cache *ac; in ____cache_alloc()
3309 static void cache_flusharray(struct kmem_cache *cachep, struct array_cache *ac) in cache_flusharray()
3324 struct array_cache *shared_array = n->shared; in cache_flusharray()
3369 struct array_cache *ac = cpu_cache_get(cachep); in __cache_free()
3608 struct array_cache *new_shared; in alloc_kmem_cache_node()
3632 struct array_cache *shared = n->shared; in alloc_kmem_cache_node()
3694 struct array_cache __percpu *cpu_cache, *prev; in __do_tune_cpucache()
3717 struct array_cache *ac = per_cpu_ptr(prev, cpu); in __do_tune_cpucache()
3828 struct array_cache *ac, int force, int node) in drain_array()