|
@@ -306,7 +306,7 @@ static __u32 *get_choose_arg_weights(const struct crush_bucket_straw2 *bucket,
|
|
const struct crush_choose_arg *arg,
|
|
const struct crush_choose_arg *arg,
|
|
int position)
|
|
int position)
|
|
{
|
|
{
|
|
- if (!arg || !arg->weight_set || arg->weight_set_size == 0)
|
|
|
|
|
|
+ if (!arg || !arg->weight_set)
|
|
return bucket->item_weights;
|
|
return bucket->item_weights;
|
|
|
|
|
|
if (position >= arg->weight_set_size)
|
|
if (position >= arg->weight_set_size)
|