Lines Matching refs:batchcount
188 unsigned int batchcount; member
384 .batchcount = 1,
528 ac->batchcount = batch; in init_arraycache()
534 int batchcount, gfp_t gfp) in alloc_arraycache() argument
548 init_arraycache(ac, entries, batchcount); in alloc_arraycache()
830 n->free_limit = (1 + nr_cpus_node(node)) * cachep->batchcount + in init_cache_node()
846 (1 + nr_cpus_node(node)) * cachep->batchcount + cachep->num; in init_cache_node()
901 cachep->shared * cachep->batchcount, 0xbaadf00d, gfp); in setup_kmem_cache_node()
971 n->free_limit -= cachep->batchcount; in cpuup_canceled()
1734 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
1748 entries, batchcount); in alloc_kmem_cache_cpus()
1786 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
1788 cachep->batchcount = 1; in setup_cpu_cache()
2880 struct array_cache *ac, struct page *page, int batchcount) in alloc_block() argument
2888 while (page->active < cachep->num && batchcount--) { in alloc_block()
2896 return batchcount; in alloc_block()
2901 int batchcount; in cache_alloc_refill() local
2912 batchcount = ac->batchcount; in cache_alloc_refill()
2913 if (!ac->touched && batchcount > BATCHREFILL_LIMIT) { in cache_alloc_refill()
2919 batchcount = BATCHREFILL_LIMIT; in cache_alloc_refill()
2932 if (shared && transfer_objects(ac, shared, batchcount)) { in cache_alloc_refill()
2937 while (batchcount > 0) { in cache_alloc_refill()
2945 batchcount = alloc_block(cachep, ac, page, batchcount); in cache_alloc_refill()
2973 alloc_block(cachep, ac, page, batchcount); in cache_alloc_refill()
3377 int batchcount; in cache_flusharray() local
3382 batchcount = ac->batchcount; in cache_flusharray()
3391 if (batchcount > max) in cache_flusharray()
3392 batchcount = max; in cache_flusharray()
3394 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3395 shared_array->avail += batchcount; in cache_flusharray()
3400 free_block(cachep, ac->entry, batchcount, node, &list); in cache_flusharray()
3416 ac->avail -= batchcount; in cache_flusharray()
3417 memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); in cache_flusharray()
3845 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3850 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in do_tune_cpucache()
3864 cachep->batchcount = batchcount; in do_tune_cpucache()
3896 int batchcount = 0; in enable_cpucache() local
3943 batchcount = (limit + 1) / 2; in enable_cpucache()
3944 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
4080 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
4132 int limit, batchcount, shared, res; in slabinfo_write() local
4146 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4154 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4155 batchcount > limit || shared < 0) { in slabinfo_write()
4159 batchcount, shared, in slabinfo_write()