Whamcloud - gitweb
b=11678 add check to void unnecessary warning
authorLanden <landen@sun.com>
Mon, 6 Sep 2010 14:31:24 +0000 (18:31 +0400)
committerMikhail Pershin <tappro@sun.com>
Mon, 6 Sep 2010 19:28:27 +0000 (23:28 +0400)
i=johann
i=andrew.perepechko

lustre/quota/quota_master.c

index 7a3ec0e..0f66753 100644 (file)
@@ -1690,6 +1690,9 @@ int mds_quota_recovery(struct obd_device *obd)
         int rc = 0;
         ENTRY;
 
         int rc = 0;
         ENTRY;
 
+        if (!ll_sb_any_quota_active(obd->u.obt.obt_qctxt.lqc_sb))
+                RETURN(0);
+
         if (unlikely(!mds->mds_quota || obd->obd_stopping))
                 RETURN(rc);
 
         if (unlikely(!mds->mds_quota || obd->obd_stopping))
                 RETURN(rc);