Lines Matching refs:batchcount
192 unsigned int batchcount; member
462 .batchcount = 1,
674 ac->batchcount = batch; in init_arraycache()
680 int batchcount, gfp_t gfp) in alloc_arraycache() argument
686 init_arraycache(ac, entries, batchcount); in alloc_arraycache()
1084 cachep->batchcount + cachep->num; in init_cache_node_node()
1116 n->free_limit -= cachep->batchcount; in cpuup_canceled()
1191 cachep->shared * cachep->batchcount, in cpuup_prepare()
1993 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
2007 entries, batchcount); in alloc_kmem_cache_cpus()
2045 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
2047 cachep->batchcount = 1; in setup_cpu_cache()
2762 int batchcount; in cache_alloc_refill() local
2773 batchcount = ac->batchcount; in cache_alloc_refill()
2774 if (!ac->touched && batchcount > BATCHREFILL_LIMIT) { in cache_alloc_refill()
2780 batchcount = BATCHREFILL_LIMIT; in cache_alloc_refill()
2788 if (n->shared && transfer_objects(ac, n->shared, batchcount)) { in cache_alloc_refill()
2793 while (batchcount > 0) { in cache_alloc_refill()
2815 while (page->active < cachep->num && batchcount--) { in cache_alloc_refill()
3311 int batchcount; in cache_flusharray() local
3316 batchcount = ac->batchcount; in cache_flusharray()
3318 BUG_ON(!batchcount || batchcount > ac->avail); in cache_flusharray()
3327 if (batchcount > max) in cache_flusharray()
3328 batchcount = max; in cache_flusharray()
3330 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3331 shared_array->avail += batchcount; in cache_flusharray()
3336 free_block(cachep, ac->entry, batchcount, node, &list); in cache_flusharray()
3358 ac->avail -= batchcount; in cache_flusharray()
3359 memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); in cache_flusharray()
3622 cachep->shared*cachep->batchcount, in alloc_kmem_cache_node()
3647 cachep->batchcount + cachep->num; in alloc_kmem_cache_node()
3667 cachep->batchcount + cachep->num; in alloc_kmem_cache_node()
3692 int batchcount, int shared, gfp_t gfp) in __do_tune_cpucache() argument
3697 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in __do_tune_cpucache()
3706 cachep->batchcount = batchcount; in __do_tune_cpucache()
3733 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3738 ret = __do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in do_tune_cpucache()
3749 __do_tune_cpucache(c, limit, batchcount, shared, gfp); in do_tune_cpucache()
3761 int batchcount = 0; in enable_cpucache() local
3767 batchcount = root->batchcount; in enable_cpucache()
3770 if (limit && shared && batchcount) in enable_cpucache()
3813 batchcount = (limit + 1) / 2; in enable_cpucache()
3815 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
3981 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
4032 int limit, batchcount, shared, res; in slabinfo_write() local
4046 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4054 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4055 batchcount > limit || shared < 0) { in slabinfo_write()
4059 batchcount, shared, in slabinfo_write()