• Home
  • Raw
  • Download

Lines Matching refs:limit

186 	unsigned int limit;  member
384 .limit = BOOT_CPUCACHE_ENTRIES,
522 static void init_arraycache(struct array_cache *ac, int limit, int batch) in init_arraycache() argument
526 ac->limit = limit; in init_arraycache()
578 int nr = min3(from->avail, max, to->limit - to->avail); in transfer_objects()
597 int limit, gfp_t gfp) in alloc_alien_cache() argument
648 static struct alien_cache **alloc_alien_cache(int node, int limit, gfp_t gfp) in alloc_alien_cache() argument
653 if (limit > 1) in alloc_alien_cache()
654 limit = 12; in alloc_alien_cache()
662 alc_ptr[i] = __alloc_alien_cache(node, limit, 0xbaadf00d, gfp); in alloc_alien_cache()
698 transfer_objects(n->shared, ac, ac->limit); in __drain_alien_cache()
766 if (unlikely(ac->avail == ac->limit)) { in __cache_free_alien()
883 new_alien = alloc_alien_cache(node, cachep->limit, gfp); in setup_kmem_cache_node()
1449 static void dump_line(char *data, int offset, int limit) in dump_line() argument
1456 for (i = 0; i < limit; i++) { in dump_line()
1463 &data[offset], limit, 1); in dump_line()
1497 int limit; in print_objinfo() local
1498 limit = 16; in print_objinfo()
1499 if (i + limit > size) in print_objinfo()
1500 limit = size - i; in print_objinfo()
1501 dump_line(realobj, i, limit); in print_objinfo()
1522 int limit; in check_poison_obj() local
1533 limit = 16; in check_poison_obj()
1534 if (i + limit > size) in check_poison_obj()
1535 limit = size - i; in check_poison_obj()
1536 dump_line(realobj, i, limit); in check_poison_obj()
1773 cpu_cache_get(cachep)->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
1777 cachep->limit = BOOT_CPUCACHE_ENTRIES; in setup_cpu_cache()
2127 tofree = free_all ? ac->avail : (ac->limit + 4) / 5; in drain_array_locked()
3385 int max = shared_array->limit - shared_array->avail; in cache_flusharray()
3452 if (ac->avail < ac->limit) { in ___cache_free()
3798 static int __do_tune_cpucache(struct kmem_cache *cachep, int limit, in __do_tune_cpucache() argument
3804 cpu_cache = alloc_kmem_cache_cpus(cachep, limit, batchcount); in __do_tune_cpucache()
3819 cachep->limit = limit; in __do_tune_cpucache()
3844 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, in do_tune_cpucache() argument
3850 ret = __do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in do_tune_cpucache()
3861 __do_tune_cpucache(c, limit, batchcount, shared, gfp); in do_tune_cpucache()
3871 int limit = 0; in enable_cpucache() local
3881 limit = root->limit; in enable_cpucache()
3886 if (limit && shared && batchcount) in enable_cpucache()
3898 limit = 1; in enable_cpucache()
3900 limit = 8; in enable_cpucache()
3902 limit = 24; in enable_cpucache()
3904 limit = 54; in enable_cpucache()
3906 limit = 120; in enable_cpucache()
3926 if (limit > 32) in enable_cpucache()
3927 limit = 32; in enable_cpucache()
3929 batchcount = (limit + 1) / 2; in enable_cpucache()
3931 err = do_tune_cpucache(cachep, limit, batchcount, shared, gfp); in enable_cpucache()
4066 sinfo->limit = cachep->limit; in get_slabinfo()
4119 int limit, batchcount, shared, res; in slabinfo_write() local
4133 if (sscanf(tmp, " %d %d %d", &limit, &batchcount, &shared) != 3) in slabinfo_write()
4141 if (limit < 1 || batchcount < 1 || in slabinfo_write()
4142 batchcount > limit || shared < 0) { in slabinfo_write()
4145 res = do_tune_cpucache(cachep, limit, in slabinfo_write()