From 111389e485a77d50b153156493baa7156a798f6d Mon Sep 17 00:00:00 2001 From: liuy Date: Wed, 12 Sep 2007 03:29:20 +0000 Subject: [PATCH] Branch b1_6 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 a79353c..2755f73 100644 --- a/lustre/lov/lov_qos.c +++ b/lustre/lov/lov_qos.c @@ -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); -- 1.8.3.1