diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c
index 2c1d80d5ee624c24868aa775d295896a0e2e7dc5..76ba29c739a6ca424188825bb178a5ac06019657 100644
--- a/lustre/obdfilter/filter.c
+++ b/lustre/obdfilter/filter.c
@@ -3713,8 +3713,8 @@ cleanup:
         rc2 = lquota_adjust(filter_quota_interface_ref, obd, qcids, NULL, rc,
                             FSFILT_OP_UNLINK);
 
-        CDEBUG(rc ? D_ERROR : D_QUOTA,
-               "filter adjust qunit! (rc:%d)\n", rc? rc : rc2);
+        if (rc2)
+                CDEBUG(D_QUOTA, "filter adjust qunit! (rc:%d)\n", rc2);
         return rc;
 }
 
diff --git a/lustre/quota/quota_master.c b/lustre/quota/quota_master.c
index f007b68477c41d4705bd4f8d0ec1a7c8807aa20d..f89210705f4128597332f712a3e39dc7b2c793d0 100644
--- a/lustre/quota/quota_master.c
+++ b/lustre/quota/quota_master.c
@@ -335,7 +335,7 @@ int filter_quota_adjust(struct obd_device *obd, unsigned int qcids[],
         int rc2 = 0;
         ENTRY;
 
-        if (rc && rc != -EDQUOT && rc != ENOLCK)
+        if (rc && rc != -EDQUOT)
                 RETURN(0);
 
         switch (opc) {