From 3424414195af03f3d20e8f4163d1072e12cfdecc Mon Sep 17 00:00:00 2001 From: liuy Date: Wed, 12 Sep 2007 04:18:15 +0000 Subject: [PATCH] Branch HEAD b=13125 replace stripe_cnt_min with *stripe_cnt to keep good object distribution --- lustre/lov/lov_qos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 1.8.3.1