Home
last modified time | relevance | path

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

/Linux-v6.6/net/ceph/crush/
Dcrush.c36 return ((struct crush_bucket_list *)b)->item_weights[p]; in crush_get_bucket_item_weight()
40 return ((struct crush_bucket_straw *)b)->item_weights[p]; in crush_get_bucket_item_weight()
42 return ((struct crush_bucket_straw2 *)b)->item_weights[p]; in crush_get_bucket_item_weight()
55 kfree(b->item_weights); in crush_destroy_bucket_list()
71 kfree(b->item_weights); in crush_destroy_bucket_straw()
78 kfree(b->item_weights); in crush_destroy_bucket_straw2()
Dmapper.c153 i, x, r, bucket->h.items[i], bucket->item_weights[i], in bucket_list_choose()
158 if (w < bucket->item_weights[i]) { in bucket_list_choose()
310 return bucket->item_weights; in get_choose_arg_weights()
/Linux-v6.6/include/linux/crush/
Dcrush.h211 __u32 *item_weights; /* 16-bit fixed point */ member
225 __u32 *item_weights; /* 16-bit fixed point */ member
231 __u32 *item_weights; /* 16-bit fixed point */ member
/Linux-v6.6/net/ceph/
Dosdmap.c87 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_list_bucket()
88 if (b->item_weights == NULL) in crush_decode_list_bucket()
95 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket()
125 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw_bucket()
126 if (b->item_weights == NULL) in crush_decode_straw_bucket()
133 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw_bucket()
146 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw2_bucket()
147 if (b->item_weights == NULL) in crush_decode_straw2_bucket()
151 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw2_bucket()