Home
last modified time | relevance | path

Searched refs:node_weights (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.10/net/ceph/crush/
Dcrush.c38 return ((struct crush_bucket_tree *)b)->node_weights[crush_calc_tree_node(p)]; in crush_get_bucket_item_weight()
64 kfree(b->node_weights); in crush_destroy_bucket_tree()
Dmapper.c209 w = bucket->node_weights[n]; in bucket_tree_choose()
216 if (t < bucket->node_weights[l]) in bucket_tree_choose()
/Linux-v5.10/include/linux/crush/
Dcrush.h220 __u32 *node_weights; member
/Linux-v5.10/net/ceph/
Dosdmap.c93 b->node_weights = kcalloc(b->num_nodes, sizeof(u32), GFP_NOFS); in crush_decode_tree_bucket()
94 if (b->node_weights == NULL) in crush_decode_tree_bucket()
98 b->node_weights[j] = ceph_decode_32(p); in crush_decode_tree_bucket()