Home
last modified time | relevance | path

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

/linux-3.4.99/net/ceph/crush/
Dcrush.c40 return ((struct crush_bucket_tree *)b)->node_weights[crush_calc_tree_node(p)]; in crush_get_bucket_item_weight()
90 kfree(b->node_weights); in crush_destroy_bucket_tree()
Dmapper.c200 w = bucket->node_weights[n]; in bucket_tree_choose()
207 if (t < bucket->node_weights[l]) in bucket_tree_choose()
/linux-3.4.99/include/linux/crush/
Dcrush.h136 __u32 *node_weights; member
/linux-3.4.99/net/ceph/
Dosdmap.c106 b->node_weights = kcalloc(b->num_nodes, sizeof(u32), GFP_NOFS); in crush_decode_tree_bucket()
107 if (b->node_weights == NULL) in crush_decode_tree_bucket()
111 b->node_weights[j] = ceph_decode_32(p); in crush_decode_tree_bucket()