Lines Matching refs:batchcount
187 unsigned int batchcount; member
383 .batchcount = 1,
527 ac->batchcount = batch; in init_arraycache()
533 int batchcount, gfp_t gfp) in alloc_arraycache() argument
547 init_arraycache(ac, entries, batchcount); in alloc_arraycache()
829 n->free_limit = (1 + nr_cpus_node(node)) * cachep->batchcount + in init_cache_node()
845 (1 + nr_cpus_node(node)) * cachep->batchcount + cachep->num; in init_cache_node()
900 cachep->shared * cachep->batchcount, 0xbaadf00d, gfp); in setup_kmem_cache_node()
970 n->free_limit -= cachep->batchcount; in cpuup_canceled()
1732 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
1746 entries, batchcount); in alloc_kmem_cache_cpus()
1784 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
1786 cachep->batchcount = 1; in setup_cpu_cache()
2879 struct array_cache *ac, struct page *page, int batchcount) in alloc_block() argument
2887 while (page->active < cachep->num && batchcount--) { in alloc_block()
2895 return batchcount; in alloc_block()
2900 int batchcount; in cache_alloc_refill() local
2911 batchcount = ac->batchcount; in cache_alloc_refill()
2912 if (!ac->touched && batchcount > BATCHREFILL_LIMIT) { in cache_alloc_refill()
2918 batchcount = BATCHREFILL_LIMIT; in cache_alloc_refill()
2931 if (shared && transfer_objects(ac, shared, batchcount)) { in cache_alloc_refill()
2936 while (batchcount > 0) { in cache_alloc_refill()
2944 batchcount = alloc_block(cachep, ac, page, batchcount); in cache_alloc_refill()
2972 alloc_block(cachep, ac, page, batchcount); in cache_alloc_refill()
3368 int batchcount; in cache_flusharray() local
3373 batchcount = ac->batchcount; in cache_flusharray()
3382 if (batchcount > max) in cache_flusharray()
3383 batchcount = max; in cache_flusharray()
3385 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3386 shared_array->avail += batchcount; in cache_flusharray()
3391 free_block(cachep, ac->entry, batchcount, node, &list); in cache_flusharray()
3407 ac->avail -= batchcount; in cache_flusharray()
3408 memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); in cache_flusharray()
3801 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3806 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in do_tune_cpucache()
3820 cachep->batchcount = batchcount; in do_tune_cpucache()
3852 int batchcount = 0; in enable_cpucache() local
3858 if (limit && shared && batchcount) in enable_cpucache()
3901 batchcount = (limit + 1) / 2; in enable_cpucache()
3903 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
4039 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
4091 int limit, batchcount, shared, res; in slabinfo_write() local
4105 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4113 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4114 batchcount > limit || shared < 0) { in slabinfo_write()
4118 batchcount, shared, in slabinfo_write()