Lines Matching refs:batchcount

192 	unsigned int batchcount;  member
461 .batchcount = 1,
673 ac->batchcount = batch; in init_arraycache()
679 int batchcount, gfp_t gfp) in alloc_arraycache() argument
685 init_arraycache(ac, entries, batchcount); in alloc_arraycache()
1083 cachep->batchcount + cachep->num; in init_cache_node_node()
1115 n->free_limit -= cachep->batchcount; in cpuup_canceled()
1190 cachep->shared * cachep->batchcount, in cpuup_prepare()
2002 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
2016 entries, batchcount); in alloc_kmem_cache_cpus()
2054 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
2056 cachep->batchcount = 1; in setup_cpu_cache()
2771 int batchcount; in cache_alloc_refill() local
2782 batchcount = ac->batchcount; in cache_alloc_refill()
2783 if (!ac->touched && batchcount > BATCHREFILL_LIMIT) { in cache_alloc_refill()
2789 batchcount = BATCHREFILL_LIMIT; in cache_alloc_refill()
2797 if (n->shared && transfer_objects(ac, n->shared, batchcount)) { in cache_alloc_refill()
2802 while (batchcount > 0) { in cache_alloc_refill()
2824 while (page->active < cachep->num && batchcount--) { in cache_alloc_refill()
3320 int batchcount; in cache_flusharray() local
3325 batchcount = ac->batchcount; in cache_flusharray()
3327 BUG_ON(!batchcount || batchcount > ac->avail); in cache_flusharray()
3336 if (batchcount > max) in cache_flusharray()
3337 batchcount = max; in cache_flusharray()
3339 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3340 shared_array->avail += batchcount; in cache_flusharray()
3345 free_block(cachep, ac->entry, batchcount, node, &list); in cache_flusharray()
3367 ac->avail -= batchcount; in cache_flusharray()
3368 memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); in cache_flusharray()
3618 cachep->shared*cachep->batchcount, in alloc_kmem_cache_node()
3643 cachep->batchcount + cachep->num; in alloc_kmem_cache_node()
3663 cachep->batchcount + cachep->num; in alloc_kmem_cache_node()
3688 int batchcount, int shared, gfp_t gfp) in __do_tune_cpucache() argument
3693 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in __do_tune_cpucache()
3702 cachep->batchcount = batchcount; in __do_tune_cpucache()
3729 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3734 ret = __do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in do_tune_cpucache()
3745 __do_tune_cpucache(c, limit, batchcount, shared, gfp); in do_tune_cpucache()
3757 int batchcount = 0; in enable_cpucache() local
3763 batchcount = root->batchcount; in enable_cpucache()
3766 if (limit && shared && batchcount) in enable_cpucache()
3809 batchcount = (limit + 1) / 2; in enable_cpucache()
3811 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
3977 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
4028 int limit, batchcount, shared, res; in slabinfo_write() local
4042 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4050 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4051 batchcount > limit || shared < 0) { in slabinfo_write()
4055 batchcount, shared, in slabinfo_write()