Lines Matching defs:limit

180  * The limit is stored in the per-cpu structure to reduce the data cache
186 unsigned int limit;
384 .limit = BOOT_CPUCACHE_ENTRIES,
522 static void init_arraycache(struct array_cache *ac, int limit, int batch)
526 ac->limit = limit;
578 int nr = min3(from->avail, max, to->limit - to->avail);
607 int limit, gfp_t gfp)
658 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp)
663 if (limit > 1)
664 limit = 12;
672 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp);
708 transfer_objects(n->shared, ac, ac->limit);
776 if (unlikely(ac->avail == ac->limit)) {
893 new_alien = alloc_alien_cache(node, cachep->limit, gfp);
969 /* Free limit for this kmem_cache_node */
1006 * shrink each nodelist to its limit.
1455 static void dump_line(char *data, int offset, int limit)
1462 for (i = 0; i < limit; i++) {
1469 &data[offset], limit, 1);
1503 int limit;
1504 limit = 16;
1505 if (i + limit > size)
1506 limit = size - i;
1507 dump_line(realobj, i, limit);
1528 int limit;
1539 limit = 16;
1540 if (i + limit > size)
1541 limit = size - i;
1542 dump_line(realobj, i, limit);
1783 cpu_cache_get(cachep)->limit = BOOT_CPUCACHE_ENTRIES;
1787 cachep->limit = BOOT_CPUCACHE_ENTRIES;
2136 tofree = free_all ? ac->avail : (ac->limit + 4) / 5;
3379 int max = shared_array->limit - shared_array->avail;
3452 if (ac->avail < ac->limit) {
3799 static int do_tune_cpucache(struct kmem_cache *cachep, int limit,
3805 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount);
3820 cachep->limit = limit;
3849 int limit = 0;
3857 if (limit && shared && batchcount)
3869 limit = 1;
3871 limit = 8;
3873 limit = 24;
3875 limit = 54;
3877 limit = 120;
3886 * to a larger limit. Thus disabled by default.
3897 if (limit > 32)
3898 limit = 32;
3900 batchcount = (limit + 1) / 2;
3902 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
4037 sinfo->limit = cachep->limit;
4090 int limit, batchcount, shared, res;
4104 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3)
4112 if (limit < 1 || batchcount < 1 ||
4113 batchcount > limit || shared < 0) {
4116 res = do_tune_cpucache(cachep, limit,