Lines Matching refs:array_cache
185 struct array_cache { struct
199 struct array_cache ac;
393 static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) in cpu_cache_get()
523 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache()
533 static struct array_cache *alloc_arraycache(int node, int entries, in alloc_arraycache()
536 size_t memsize = sizeof(void *) * entries + sizeof(struct array_cache); in alloc_arraycache()
537 struct array_cache *ac = NULL; in alloc_arraycache()
575 static int transfer_objects(struct array_cache *to, in transfer_objects()
576 struct array_cache *from, unsigned int max) in transfer_objects()
593 static __always_inline void __free_one(struct array_cache *ac, void *objp) in __free_one()
696 struct array_cache *ac, int node, in __drain_alien_cache()
726 struct array_cache *ac; in reap_alien()
746 struct array_cache *ac; in drain_alien_cache()
768 struct array_cache *ac; in __cache_free_alien()
888 struct array_cache *old_shared = NULL; in setup_kmem_cache_node()
889 struct array_cache *new_shared = NULL; in setup_kmem_cache_node()
959 struct array_cache *nc; in cpuup_canceled()
960 struct array_cache *shared; in cpuup_canceled()
1732 static struct array_cache __percpu *alloc_kmem_cache_cpus( in alloc_kmem_cache_cpus()
1737 struct array_cache __percpu *cpu_cache; in alloc_kmem_cache_cpus()
1739 size = sizeof(void *) * entries + sizeof(struct array_cache); in alloc_kmem_cache_cpus()
2129 static void drain_array_locked(struct kmem_cache *cachep, struct array_cache *ac, in drain_array_locked()
2149 struct array_cache *ac; in do_drain()
2879 struct array_cache *ac, struct page *page, int batchcount) in alloc_block()
2902 struct array_cache *ac, *shared; in cache_alloc_refill()
3032 struct array_cache *ac; in ____cache_alloc()
3373 static void cache_flusharray(struct kmem_cache *cachep, struct array_cache *ac) in cache_flusharray()
3386 struct array_cache *shared_array = n->shared; in cache_flusharray()
3458 struct array_cache *ac = cpu_cache_get(cachep); in ___cache_free()
3825 struct array_cache __percpu *cpu_cache, *prev; in do_tune_cpucache()
3853 struct array_cache *ac = per_cpu_ptr(prev, cpu); in do_tune_cpucache()
3939 struct array_cache *ac, int node) in drain_array()