Home
last modified time | relevance | path

Searched refs:nr_buckets (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/md/
Ddm-region-hash.c67 unsigned nr_buckets; member
171 unsigned nr_buckets, max_buckets; in dm_region_hash_create() local
180 for (nr_buckets = 128u; nr_buckets < max_buckets; nr_buckets <<= 1) in dm_region_hash_create()
182 nr_buckets >>= 1; in dm_region_hash_create()
200 rh->mask = nr_buckets - 1; in dm_region_hash_create()
201 rh->nr_buckets = nr_buckets; in dm_region_hash_create()
206 rh->buckets = vmalloc(array_size(nr_buckets, sizeof(*rh->buckets))); in dm_region_hash_create()
213 for (i = 0; i < nr_buckets; i++) in dm_region_hash_create()
243 for (h = 0; h < rh->nr_buckets; h++) { in dm_region_hash_destroy()
Ddm-cache-policy-smq.c585 unsigned i, nr_buckets; in h_init() local
588 nr_buckets = roundup_pow_of_two(max(nr_entries / 4u, 16u)); in h_init()
589 ht->hash_bits = __ffs(nr_buckets); in h_init()
591 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets))); in h_init()
595 for (i = 0; i < nr_buckets; i++) in h_init()