Lines Matching refs:limit

191 	unsigned int limit;  member
462 .limit = BOOT_CPUCACHE_ENTRIES,
660 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
672 ac->limit = limit; in init_arraycache()
815 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
834 int limit, gfp_t gfp) in alloc_alien_cache() argument
882 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
888 if (limit > 1) in alloc_alien_cache()
889 limit = 12; in alloc_alien_cache()
897 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
933 transfer_objects(n->shared, ac, ac->limit); in __drain_alien_cache()
1001 if (unlikely(ac->avail == ac->limit)) { in __cache_free_alien()
1196 alien = alloc_alien_cache(node, cachep->limit, GFP_KERNEL); in cpuup_prepare()
1715 static void dump_line(char *data, int offset, int limit) in dump_line() argument
1722 for (i = 0; i < limit; i++) { in dump_line()
1729 &data[offset], limit, 1); in dump_line()
1768 int limit; in print_objinfo() local
1769 limit = 16; in print_objinfo()
1770 if (i + limit > size) in print_objinfo()
1771 limit = size - i; in print_objinfo()
1772 dump_line(realobj, i, limit); in print_objinfo()
1790 int limit; in check_poison_obj() local
1801 limit = 16; in check_poison_obj()
1802 if (i + limit > size) in check_poison_obj()
1803 limit = size - i; in check_poison_obj()
1804 dump_line(realobj, i, limit); in check_poison_obj()
2053 cpu_cache_get(cachep)->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
2057 cachep->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
3334 int max = shared_array->limit - shared_array->avail; in cache_flusharray()
3396 if (ac->avail < ac->limit) { in __cache_free()
3610 new_alien = alloc_alien_cache(node, cachep->limit, gfp); in alloc_kmem_cache_node()
3687 static int __do_tune_cpucache(struct kmem_cache *cachep, int limit, in __do_tune_cpucache() argument
3693 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in __do_tune_cpucache()
3703 cachep->limit = limit; in __do_tune_cpucache()
3728 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, in do_tune_cpucache() argument
3734 ret = __do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in do_tune_cpucache()
3745 __do_tune_cpucache(c, limit, batchcount, shared, gfp); in do_tune_cpucache()
3755 int limit = 0; in enable_cpucache() local
3761 limit = root->limit; in enable_cpucache()
3766 if (limit && shared && batchcount) in enable_cpucache()
3778 limit = 1; in enable_cpucache()
3780 limit = 8; in enable_cpucache()
3782 limit = 24; in enable_cpucache()
3784 limit = 54; in enable_cpucache()
3786 limit = 120; in enable_cpucache()
3806 if (limit > 32) in enable_cpucache()
3807 limit = 32; in enable_cpucache()
3809 batchcount = (limit + 1) / 2; in enable_cpucache()
3811 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
3836 tofree = force ? ac->avail : (ac->limit + 4) / 5; in drain_array()
3976 sinfo->limit = cachep->limit; in get_slabinfo()
4028 int limit, batchcount, shared, res; in slabinfo_write() local
4042 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4050 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4051 batchcount > limit || shared < 0) { in slabinfo_write()
4054 res = do_tune_cpucache(cachep, limit, in slabinfo_write()