Whamcloud - gitweb
fix handling ost additional.
[fs/lustre-release.git] / lustre / mgs / mgs_fs.c
index 4b87e84..2812f84 100644 (file)
@@ -73,9 +73,9 @@ static int mgs_export_stats_init(struct obd_device *obd, struct obd_export *exp,
                 return rc;
         }
 
-        if (!obd->md_stats &&
-            lprocfs_alloc_md_stats(obd, LPROC_MGS_LAST))
-                        return rc;
+        if ((obd->md_stats == NULL) &&
+            (rc = lprocfs_alloc_md_stats(obd, LPROC_MGS_LAST)))
+                return rc;
         if (newnid) {
                 /* Always add in ldlm_stats */
                 exp->exp_nid_stats->nid_ldlm_stats =