Lines Matching refs:count
1031 unsigned int count) in freelist_randomize() argument
1036 for (i = 0; i < count; i++) in freelist_randomize()
1040 for (i = count - 1; i > 0; i--) { in freelist_randomize()
1047 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument
1051 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
1054 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
1058 freelist_randomize(cachep->random_seq, count); in cache_random_seq_create()
2093 unsigned long count = 0; in kfree_rcu_shrink_count() local
2099 count += krc_count(krcp); in kfree_rcu_shrink_count()
2100 count += READ_ONCE(krcp->nr_bkv_objs); in kfree_rcu_shrink_count()
2104 return count == 0 ? SHRINK_EMPTY : count; in kfree_rcu_shrink_count()
2113 int count; in kfree_rcu_shrink_scan() local
2116 count = krc_count(krcp); in kfree_rcu_shrink_scan()
2117 count += drain_page_cache(krcp); in kfree_rcu_shrink_scan()
2120 sc->nr_to_scan -= count; in kfree_rcu_shrink_scan()
2121 freed += count; in kfree_rcu_shrink_scan()