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

Branch b1_6

b=13125

replace stripe_cnt_min with *stripe_cnt to keep good object distribution
parent 454d2a8c
No related branches found
No related tags found
No related merge requests found
......@@ -517,8 +517,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