Whamcloud - gitweb
Branch HEAD
authorliuy <liuy>
Wed, 12 Sep 2007 04:18:15 +0000 (04:18 +0000)
committerliuy <liuy>
Wed, 12 Sep 2007 04:18:15 +0000 (04:18 +0000)
b=13125

replace stripe_cnt_min with *stripe_cnt to keep good object distribution

lustre/lov/lov_qos.c

index c6ff1eb..260c5ca 100644 (file)
@@ -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);