From: liuy Date: Wed, 12 Sep 2007 04:18:15 +0000 (+0000) Subject: Branch HEAD X-Git-Tag: v1_7_0_51~762 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3424414195af03f3d20e8f4163d1072e12cfdecc;p=fs%2Flustre-release.git Branch HEAD b=13125 replace stripe_cnt_min with *stripe_cnt to keep good object distribution --- diff --git a/lustre/lov/lov_qos.c b/lustre/lov/lov_qos.c index c6ff1eb..260c5ca 100644 --- a/lustre/lov/lov_qos.c +++ b/lustre/lov/lov_qos.c @@ -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);