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()
815 n->free_limit = (1 + nr_cpus_node(node)) * cachep->batchcount + in init_cache_node()
831 (1 + nr_cpus_node(node)) * cachep->batchcount + cachep->num; in init_cache_node()
886 cachep->shared * cachep->batchcount, 0xbaadf00d, gfp); in setup_kmem_cache_node()
956 n->free_limit -= cachep->batchcount; in cpuup_canceled()
1728 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus() argument
1742 entries, batchcount); in alloc_kmem_cache_cpus()
1780 cpu_cache_get(cachep)->batchcount = 1; in setup_cpu_cache()
1782 cachep->batchcount = 1; in setup_cpu_cache()
2858 struct array_cache *ac, struct slab *slab, int batchcount) in alloc_block() argument
2866 while (slab->active < cachep->num && batchcount--) { in alloc_block()
2874 return batchcount; in alloc_block()
2879 int batchcount; in cache_alloc_refill() local
2890 batchcount = ac->batchcount; in cache_alloc_refill()
2891 if (!ac->touched && batchcount > BATCHREFILL_LIMIT) { in cache_alloc_refill()
2897 batchcount = BATCHREFILL_LIMIT; in cache_alloc_refill()
2910 if (shared && transfer_objects(ac, shared, batchcount)) { in cache_alloc_refill()
2915 while (batchcount > 0) { in cache_alloc_refill()
2923 batchcount = alloc_block(cachep, ac, slab, batchcount); in cache_alloc_refill()
2951 alloc_block(cachep, ac, slab, batchcount); in cache_alloc_refill()
3319 int batchcount; in cache_flusharray() local
3324 batchcount = ac->batchcount; in cache_flusharray()
3333 if (batchcount > max) in cache_flusharray()
3334 batchcount = max; in cache_flusharray()
3336 ac->entry, sizeof(void *) * batchcount); in cache_flusharray()
3337 shared_array->avail += batchcount; in cache_flusharray()
3342 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()
3690 int batchcount, int shared, gfp_t gfp) in do_tune_cpucache() argument
3695 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in do_tune_cpucache()
3709 cachep->batchcount = batchcount; in do_tune_cpucache()
3741 int batchcount = 0; in enable_cpucache() local
3788 batchcount = (limit + 1) / 2; in enable_cpucache()
3789 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
3925 sinfo->batchcount = cachep->batchcount; in get_slabinfo()
3977 int limit, batchcount, shared, res; in slabinfo_write() local
3991 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
3999 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4000 batchcount > limit || shared < 0) { in slabinfo_write()
4004 batchcount, shared, in slabinfo_write()