Searched refs:item_weights (Results 1 – 4 of 4) sorted by relevance
| /linux/net/ceph/crush/ |
| H A D | crush.c | 36 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() 54 kfree(b->item_weights); in crush_destroy_bucket_list() 68 kfree(b->item_weights); in crush_destroy_bucket_straw() 74 kfree(b->item_weights); in crush_destroy_bucket_straw2()
|
| H A D | mapper.c | 153 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/include/linux/crush/ |
| H A D | crush.h | 211 __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/net/ceph/ |
| H A D | osdmap.c | 86 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_list_bucket() 87 if (b->item_weights == NULL) in crush_decode_list_bucket() 94 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 124 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw_bucket() 125 if (b->item_weights == NULL) in crush_decode_straw_bucket() 132 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw_bucket() 145 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw2_bucket() 146 if (b->item_weights == NULL) in crush_decode_straw2_bucket() 150 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw2_bucket()
|