Loading net/ceph/crush/mapper.c +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ static __u32 *get_choose_arg_weights(const struct crush_bucket_straw2 *bucket, const struct crush_choose_arg *arg, int position) { if (!arg || !arg->weight_set || arg->weight_set_size == 0) if (!arg || !arg->weight_set) return bucket->item_weights; if (position >= arg->weight_set_size) Loading net/ceph/osdmap.c +4 −0 Original line number Diff line number Diff line Loading @@ -295,6 +295,10 @@ static int decode_choose_args(void **p, void *end, struct crush_map *c) ret = decode_choose_arg(p, end, arg); if (ret) goto fail; if (arg->ids_size && arg->ids_size != c->buckets[bucket_index]->size) goto e_inval; } insert_choose_arg_map(&c->choose_args, arg_map); Loading Loading
net/ceph/crush/mapper.c +1 −1 Original line number Diff line number Diff line Loading @@ -306,7 +306,7 @@ static __u32 *get_choose_arg_weights(const struct crush_bucket_straw2 *bucket, const struct crush_choose_arg *arg, int position) { if (!arg || !arg->weight_set || arg->weight_set_size == 0) if (!arg || !arg->weight_set) return bucket->item_weights; if (position >= arg->weight_set_size) Loading
net/ceph/osdmap.c +4 −0 Original line number Diff line number Diff line Loading @@ -295,6 +295,10 @@ static int decode_choose_args(void **p, void *end, struct crush_map *c) ret = decode_choose_arg(p, end, arg); if (ret) goto fail; if (arg->ids_size && arg->ids_size != c->buckets[bucket_index]->size) goto e_inval; } insert_choose_arg_map(&c->choose_args, arg_map); Loading