Whamcloud - gitweb
Branch b1_8
authorjohann <johann>
Wed, 16 Sep 2009 14:48:19 +0000 (14:48 +0000)
committerjohann <johann>
Wed, 16 Sep 2009 14:48:19 +0000 (14:48 +0000)
b=19551
i=tianzy
i=adilger

don't print message on the console when ->adjust_qunit fails.

lustre/quota/quota_master.c

index 6c19d3e..9d47053 100644 (file)
@@ -505,7 +505,7 @@ int mds_quota_adjust(struct obd_device *obd, unsigned int qcids[],
         }
 
         if (rc2)
-                CDEBUG(rc2 == QUOTA_REQ_RETURNED ? D_QUOTA: D_ERROR,
+                CDEBUG(D_QUOTA,
                        "mds adjust qunit %ssuccessfully! (opc:%d rc:%d)\n",
                        rc2 == QUOTA_REQ_RETURNED ? "" : "un", opc, rc2);
         RETURN(0);
@@ -544,9 +544,9 @@ int filter_quota_adjust(struct obd_device *obd, unsigned int qcids[],
         if (rc || rc2) {
                 if (!rc)
                         rc = rc2;
-                CDEBUG(rc == QUOTA_REQ_RETURNED ? D_QUOTA: D_ERROR,
+                CDEBUG(D_QUOTA,
                        "filter adjust qunit %ssuccessfully! (opc:%d rc%d)\n",
-                       QUOTA_REQ_RETURNED ? "" : "un", opc, rc);
+                       rc == QUOTA_REQ_RETURNED ? "" : "un", opc, rc);
         }
 
         RETURN(0);