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()
1733 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
1747 entries, batchcount); in alloc_kmem_cache_cpus()
1785 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
1787 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()
3375 int batchcount; in cache_flusharray() local
3380 batchcount = ac->batchcount; in cache_flusharray()
3389 if (batchcount > max) in cache_flusharray()
3390 batchcount = max; in cache_flusharray()
3392 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3393 shared_array->avail += batchcount; in cache_flusharray()
3398 free_block(cachep, ac->entry, batchcount, node, &list); in cache_flusharray()
3414 ac->avail -= batchcount; in cache_flusharray()
3415 memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); in cache_flusharray()
3823 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3828 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in do_tune_cpucache()
3842 cachep->batchcount = batchcount; in do_tune_cpucache()
3874 int batchcount = 0; in enable_cpucache() local
3880 if (limit && shared && batchcount) in enable_cpucache()
3923 batchcount = (limit + 1) / 2; in enable_cpucache()
3925 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
4061 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
4114 int limit, batchcount, shared, res; in slabinfo_write() local
4128 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4136 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4137 batchcount > limit || shared < 0) { in slabinfo_write()
4141 batchcount, shared, in slabinfo_write()