Skip to content
Snippets Groups Projects
Commit 34244141 authored by Liu Ying's avatar Liu Ying
Browse files

Branch HEAD

b=13125

replace stripe_cnt_min with *stripe_cnt to keep good object distribution
parent 49da8480
No related merge requests found
......@@ -532,8 +532,7 @@ static int alloc_rr(struct lov_obd *lov, int *idx_arr, int *stripe_cnt,
/* If we have allocated from all of the OSTs, slowly
precess the next start */
lov->lov_start_idx %= ost_count;
if (stripe_cnt_min > 1 &&
(ost_active_count % stripe_cnt_min) != 1)
if (*stripe_cnt > 1 && (ost_active_count % (*stripe_cnt)) != 1)
++lov->lov_offset_idx;
}
down_read(&lov->lov_qos.lq_rw_sem);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment