• Home
  • Raw
  • Download

Lines Matching refs:limit

187 	unsigned int limit;  member
385 .limit = BOOT_CPUCACHE_ENTRIES,
523 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
527 ac->limit = limit; in init_arraycache()
579 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
608 int limit, gfp_t gfp) in alloc_alien_cache() argument
659 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
664 if (limit > 1) in alloc_alien_cache()
665 limit = 12; in alloc_alien_cache()
673 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
709 transfer_objects(n->shared, ac, ac->limit); in __drain_alien_cache()
777 if (unlikely(ac->avail == ac->limit)) { in __cache_free_alien()
894 new_alien = alloc_alien_cache(node, cachep->limit, gfp); in setup_kmem_cache_node()
1456 static void dump_line(char *data, int offset, int limit) in dump_line() argument
1463 for (i = 0; i < limit; i++) { in dump_line()
1470 &data[offset], limit, 1); in dump_line()
1504 int limit; in print_objinfo() local
1505 limit = 16; in print_objinfo()
1506 if (i + limit > size) in print_objinfo()
1507 limit = size - i; in print_objinfo()
1508 dump_line(realobj, i, limit); in print_objinfo()
1529 int limit; in check_poison_obj() local
1540 limit = 16; in check_poison_obj()
1541 if (i + limit > size) in check_poison_obj()
1542 limit = size - i; in check_poison_obj()
1543 dump_line(realobj, i, limit); in check_poison_obj()
1784 cpu_cache_get(cachep)->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
1788 cachep->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
2137 tofree = free_all ? ac->avail : (ac->limit + 4) / 5; in drain_array_locked()
3387 int max = shared_array->limit - shared_array->avail; in cache_flusharray()
3475 if (ac->avail < ac->limit) { in ___cache_free()
3822 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, in do_tune_cpucache() argument
3828 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in do_tune_cpucache()
3843 cachep->limit = limit; in do_tune_cpucache()
3872 int limit = 0; in enable_cpucache() local
3880 if (limit && shared && batchcount) in enable_cpucache()
3892 limit = 1; in enable_cpucache()
3894 limit = 8; in enable_cpucache()
3896 limit = 24; in enable_cpucache()
3898 limit = 54; in enable_cpucache()
3900 limit = 120; in enable_cpucache()
3920 if (limit > 32) in enable_cpucache()
3921 limit = 32; in enable_cpucache()
3923 batchcount = (limit + 1) / 2; in enable_cpucache()
3925 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
4060 sinfo->limit = cachep->limit; in get_slabinfo()
4114 int limit, batchcount, shared, res; in slabinfo_write() local
4128 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4136 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4137 batchcount > limit || shared < 0) { in slabinfo_write()
4140 res = do_tune_cpucache(cachep, limit, in slabinfo_write()