Lines Matching defs:limit
181 * The limit is stored in the per-cpu structure to reduce the data cache
187 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)
643 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp)
648 if (limit > 1)
649 limit = 12;
657 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp);
693 transfer_objects(n->shared, ac, ac->limit);
761 if (unlikely(ac->avail == ac->limit)) {
878 new_alien = alloc_alien_cache(node, cachep->limit, gfp);
954 /* Free limit for this kmem_cache_node */
991 * shrink each nodelist to its limit.
1438 static void dump_line(char *data, int offset, int limit)
1445 for (i = 0; i < limit; i++) {
1452 &data[offset], limit, 1);
1486 int limit;
1487 limit = 16;
1488 if (i + limit > size)
1489 limit = size - i;
1490 dump_line(realobj, i, limit);
1511 int limit;
1522 limit = 16;
1523 if (i + limit > size)
1524 limit = size - i;
1525 dump_line(realobj, i, limit);
1772 cpu_cache_get(cachep)->limit = BOOT_CPUCACHE_ENTRIES;
1776 cachep->limit = BOOT_CPUCACHE_ENTRIES;
2116 tofree = free_all ? ac->avail : (ac->limit + 4) / 5;
3312 int max = shared_array->limit - shared_array->avail;
3400 if (ac->avail < ac->limit) {
3662 static int do_tune_cpucache(struct kmem_cache *cachep, int limit,
3668 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount);
3683 cachep->limit = limit;
3712 int limit = 0;
3730 limit = 1;
3732 limit = 8;
3734 limit = 24;
3736 limit = 54;
3738 limit = 120;
3747 * to a larger limit. Thus disabled by default.
3758 if (limit > 32)
3759 limit = 32;
3761 batchcount = (limit + 1) / 2;
3762 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp);
3897 sinfo->limit = cachep->limit;
3950 int limit, batchcount, shared, res;
3964 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3)
3972 if (limit < 1 || batchcount < 1 ||
3973 batchcount > limit || shared < 0) {
3976 res = do_tune_cpucache(cachep, limit,