Lines Matching refs:batchcount

188 	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()
814 n->free_limit = (1 + nr_cpus_node(node)) * cachep->batchcount + in init_cache_node()
830 (1 + nr_cpus_node(node)) * cachep->batchcount + cachep->num; in init_cache_node()
885 cachep->shared * cachep->batchcount, 0xbaadf00d, gfp); in setup_kmem_cache_node()
955 n->free_limit -= cachep->batchcount; in cpuup_canceled()
1721 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
1735 entries, batchcount); in alloc_kmem_cache_cpus()
1773 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
1775 cachep->batchcount = 1; in setup_cpu_cache()
2838 struct array_cache *ac, struct slab *slab, int batchcount) in alloc_block() argument
2846 while (slab->active < cachep->num && batchcount--) { in alloc_block()
2854 return batchcount; in alloc_block()
2859 int batchcount; in cache_alloc_refill() local
2870 batchcount = ac->batchcount; in cache_alloc_refill()
2871 if (!ac->touched && batchcount > BATCHREFILL_LIMIT) { in cache_alloc_refill()
2877 batchcount = BATCHREFILL_LIMIT; in cache_alloc_refill()
2890 if (shared && transfer_objects(ac, shared, batchcount)) { in cache_alloc_refill()
2895 while (batchcount > 0) { in cache_alloc_refill()
2903 batchcount = alloc_block(cachep, ac, slab, batchcount); in cache_alloc_refill()
2931 alloc_block(cachep, ac, slab, batchcount); in cache_alloc_refill()
3300 int batchcount; in cache_flusharray() local
3305 batchcount = ac->batchcount; in cache_flusharray()
3314 if (batchcount > max) in cache_flusharray()
3315 batchcount = max; in cache_flusharray()
3317 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3318 shared_array->avail += batchcount; in cache_flusharray()
3323 free_block(cachep, ac->entry, batchcount, node, &list); in cache_flusharray()
3339 ac->avail -= batchcount; in cache_flusharray()
3340 memmove(ac->entry, &(ac->entry[batchcount]), sizeof(void *)*ac->avail); in cache_flusharray()
3663 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3668 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in do_tune_cpucache()
3682 cachep->batchcount = batchcount; in do_tune_cpucache()
3714 int batchcount = 0; in enable_cpucache() local
3761 batchcount = (limit + 1) / 2; in enable_cpucache()
3762 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
3898 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
3950 int limit, batchcount, shared, res; in slabinfo_write() local
3964 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
3972 if (limit < 1 || batchcount < 1 || in slabinfo_write()
3973 batchcount > limit || shared < 0) { in slabinfo_write()
3977 batchcount, shared, in slabinfo_write()