Searched refs:item_weights (Results 1 – 4 of 4) sorted by relevance
/linux-4.4.14/net/ceph/crush/ |
D | crush.c | 35 return ((struct crush_bucket_list *)b)->item_weights[p]; in crush_get_bucket_item_weight() 39 return ((struct crush_bucket_straw *)b)->item_weights[p]; in crush_get_bucket_item_weight() 41 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() 73 kfree(b->item_weights); in crush_destroy_bucket_straw() 81 kfree(b->item_weights); in crush_destroy_bucket_straw2()
|
D | mapper.c | 151 i, x, r, bucket->h.items[i], bucket->item_weights[i], in bucket_list_choose() 156 if (w < bucket->item_weights[i]) in bucket_list_choose() 306 w = bucket->item_weights[i]; in bucket_straw2_choose()
|
/linux-4.4.14/include/linux/crush/ |
D | crush.h | 153 __u32 *item_weights; /* 16-bit fixed point */ member 167 __u32 *item_weights; /* 16-bit fixed point */ member 173 __u32 *item_weights; /* 16-bit fixed point */ member
|
/linux-4.4.14/net/ceph/ |
D | osdmap.c | 71 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_list_bucket() 72 if (b->item_weights == NULL) in crush_decode_list_bucket() 79 b->item_weights[j] = ceph_decode_32(p); in crush_decode_list_bucket() 109 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw_bucket() 110 if (b->item_weights == NULL) in crush_decode_straw_bucket() 117 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw_bucket() 130 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw2_bucket() 131 if (b->item_weights == NULL) in crush_decode_straw2_bucket() 135 b->item_weights[j] = ceph_decode_32(p); in crush_decode_straw2_bucket()
|