Searched refs:nr_buckets (Results 1 – 7 of 7) sorted by relevance
| /linux-6.15/drivers/md/ |
| H A D | dm-region-hash.c | 70 unsigned int nr_buckets; member 174 unsigned int nr_buckets, max_buckets; in dm_region_hash_create() local 183 for (nr_buckets = 128u; nr_buckets < max_buckets; nr_buckets <<= 1) in dm_region_hash_create() 185 nr_buckets >>= 1; in dm_region_hash_create() 203 rh->mask = nr_buckets - 1; in dm_region_hash_create() 204 rh->nr_buckets = nr_buckets; in dm_region_hash_create() 209 rh->buckets = vmalloc(array_size(nr_buckets, sizeof(*rh->buckets))); in dm_region_hash_create() 216 for (i = 0; i < nr_buckets; i++) in dm_region_hash_create() 246 for (h = 0; h < rh->nr_buckets; h++) { in dm_region_hash_destroy()
|
| H A D | dm-cache-policy-smq.c | 587 unsigned int i, nr_buckets; in h_init() local 590 nr_buckets = roundup_pow_of_two(max(nr_entries / 4u, 16u)); in h_init() 591 ht->hash_bits = __ffs(nr_buckets); in h_init() 593 ht->buckets = vmalloc(array_size(nr_buckets, sizeof(*ht->buckets))); in h_init() 597 for (i = 0; i < nr_buckets; i++) in h_init()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | bcachefs_ioctl.h | 325 __u64 nr_buckets; member 345 __u64 nr_buckets; member
|
| H A D | journal_reclaim.c | 630 unsigned nr_buckets, bucket_to_flush; in journal_seq_to_flush() local 636 nr_buckets = ja->nr / 2; in journal_seq_to_flush() 638 nr_buckets = min(nr_buckets, ja->nr); in journal_seq_to_flush() 640 bucket_to_flush = (ja->cur_idx + nr_buckets) % ja->nr; in journal_seq_to_flush()
|
| H A D | chardev.c | 500 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage() 542 arg.nr_buckets = ca->mi.nbuckets - ca->mi.first_bucket; in bch2_ioctl_dev_usage_v2()
|
| H A D | backpointers.c | 1108 u64 nr_buckets = 0, nr_mismatches = 0, nr_empty = 0; in bch2_check_extents_to_backpointers() local 1110 nr_buckets += ca->mi.nbuckets; in bch2_check_extents_to_backpointers() 1119 nr_mismatches + nr_empty, nr_buckets); in bch2_check_extents_to_backpointers()
|
| /linux-6.15/io_uring/ |
| H A D | poll.c | 721 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_remove_all() local 729 for (i = 0; i < nr_buckets; i++) { in io_poll_remove_all() 767 unsigned nr_buckets = 1U << ctx->cancel_table.hash_bits; in io_poll_file_find() local 771 for (i = 0; i < nr_buckets; i++) { in io_poll_file_find()
|