Lines Matching refs:limit
191 unsigned int limit; member
463 .limit = BOOT_CPUCACHE_ENTRIES,
661 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
673 ac->limit = limit; in init_arraycache()
816 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
835 int limit, gfp_t gfp) in alloc_alien_cache() argument
883 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
889 if (limit > 1) in alloc_alien_cache()
890 limit = 12; in alloc_alien_cache()
898 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
934 transfer_objects(n->shared, ac, ac->limit); in __drain_alien_cache()
1002 if (unlikely(ac->avail == ac->limit)) { in __cache_free_alien()
1197 alien = alloc_alien_cache(node, cachep->limit, GFP_KERNEL); in cpuup_prepare()
1717 static void dump_line(char *data, int offset, int limit) in dump_line() argument
1724 for (i = 0; i < limit; i++) { in dump_line()
1731 &data[offset], limit, 1); in dump_line()
1770 int limit; in print_objinfo() local
1771 limit = 16; in print_objinfo()
1772 if (i + limit > size) in print_objinfo()
1773 limit = size - i; in print_objinfo()
1774 dump_line(realobj, i, limit); in print_objinfo()
1792 int limit; in check_poison_obj() local
1803 limit = 16; in check_poison_obj()
1804 if (i + limit > size) in check_poison_obj()
1805 limit = size - i; in check_poison_obj()
1806 dump_line(realobj, i, limit); in check_poison_obj()
2044 cpu_cache_get(cachep)->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
2048 cachep->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
3325 int max = shared_array->limit - shared_array->avail; in cache_flusharray()
3387 if (ac->avail < ac->limit) { in __cache_free()
3614 new_alien = alloc_alien_cache(node, cachep->limit, gfp); in alloc_kmem_cache_node()
3691 static int __do_tune_cpucache(struct kmem_cache *cachep, int limit, in __do_tune_cpucache() argument
3697 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in __do_tune_cpucache()
3707 cachep->limit = limit; in __do_tune_cpucache()
3732 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, 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()
3759 int limit = 0; in enable_cpucache() local
3765 limit = root->limit; in enable_cpucache()
3770 if (limit && shared && batchcount) in enable_cpucache()
3782 limit = 1; in enable_cpucache()
3784 limit = 8; in enable_cpucache()
3786 limit = 24; in enable_cpucache()
3788 limit = 54; in enable_cpucache()
3790 limit = 120; in enable_cpucache()
3810 if (limit > 32) in enable_cpucache()
3811 limit = 32; in enable_cpucache()
3813 batchcount = (limit + 1) / 2; in enable_cpucache()
3815 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
3840 tofree = force ? ac->avail : (ac->limit + 4) / 5; in drain_array()
3980 sinfo->limit = cachep->limit; 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()
4058 res = do_tune_cpucache(cachep, limit, in slabinfo_write()