Home
last modified time | relevance | path

Searched refs:max_buckets (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/net/ceph/crush/
Dmapper.c535 (-1-item) >= map->max_buckets) { in crush_choose_firstn()
749 (-1-item) >= map->max_buckets) { in crush_choose_indep()
863 v += map->max_buckets * sizeof(struct crush_work_bucket *); in crush_init_workspace()
864 for (b = 0; b < map->max_buckets; ++b) { in crush_init_workspace()
947 -1-curstep->arg1 < map->max_buckets && in crush_do_rule()
1015 if (bno < 0 || bno >= map->max_buckets) { in crush_do_rule()
Dcrush.c113 for (b = 0; b < map->max_buckets; b++) { in crush_destroy()
/linux-6.1.9/drivers/md/
Ddm-region-hash.c171 unsigned nr_buckets, max_buckets; in dm_region_hash_create() local
179 max_buckets = nr_regions >> 6; in dm_region_hash_create()
180 for (nr_buckets = 128u; nr_buckets < max_buckets; nr_buckets <<= 1) in dm_region_hash_create()
Ddm-snap.c880 sector_t hash_size, cow_dev_size, max_buckets; in init_hash_tables() local
887 max_buckets = calc_max_buckets(); in init_hash_tables()
890 hash_size = min(hash_size, max_buckets); in init_hash_tables()
/linux-6.1.9/include/linux/crush/
Dcrush.h243 __s32 max_buckets; member
/linux-6.1.9/net/ceph/
Dosdmap.c366 arg_map->size = c->max_buckets; in decode_choose_args()
411 c->max_buckets * sizeof(struct crush_work_bucket *); in crush_finalize()
413 for (b = 0; b < c->max_buckets; b++) { in crush_finalize()
463 c->max_buckets = ceph_decode_32(p); in crush_decode()
467 c->buckets = kcalloc(c->max_buckets, sizeof(*c->buckets), GFP_NOFS); in crush_decode()
475 for (i = 0; i < c->max_buckets; i++) { in crush_decode()
3040 for (i = 0; i < c->max_buckets; i++) { in get_immediate_parent()