Whamcloud - gitweb
- set placement policy to balanced algorithm from stressed
authortappro <tappro>
Sun, 8 Oct 2006 14:21:14 +0000 (14:21 +0000)
committertappro <tappro>
Sun, 8 Oct 2006 14:21:14 +0000 (14:21 +0000)
lustre/lmv/lmv_obd.c

index 5a66ca7..a396430 100644 (file)
@@ -707,7 +707,7 @@ static int lmv_fids_balanced(struct obd_device *obd)
         RETURN(1);
 }
 
-#if 0
+#if 1
 static int lmv_all_chars_policy(int count, struct qstr *name)
 {
         unsigned int c = 0;
@@ -736,7 +736,7 @@ static int lmv_placement_policy(struct obd_device *obd,
                  * balanced, that is all sequences have more or less equal
                  * number of objects created. */
                 if (hint->ph_cname && (hint->ph_opc == LUSTRE_OPC_MKDIR)) {
-#if 0
+#if 1
                         *mds = lmv_all_chars_policy(lmv->desc.ld_tgt_count,
                                                     hint->ph_cname);
                         rc = 0;