Home
last modified time | relevance | path

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

/openbmc/linux/net/ceph/crush/
H A 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()
H A Dmapper.c209 w = bucket->node_weights[n]; in bucket_tree_choose()
216 if (t < bucket->node_weights[l]) in bucket_tree_choose()
/openbmc/linux/include/linux/crush/
H A Dcrush.h220 __u32 *node_weights; member
/openbmc/linux/net/ceph/
H A Dosdmap.c109 b->node_weights = kcalloc(b->num_nodes, sizeof(u32), GFP_NOFS); in crush_decode_tree_bucket()
110 if (b->node_weights == NULL) in crush_decode_tree_bucket()
114 b->node_weights[j] = ceph_decode_32(p); in crush_decode_tree_bucket()