Whamcloud - gitweb
b=21871 Just cleanup export nid_stat while exp_refcount == 0.
[fs/lustre-release.git] / lustre / mdt / mdt_fs.c
index 1cb1fc4..1770620 100644 (file)
 
 int mdt_export_stats_init(struct obd_device *obd,
                           struct obd_export *exp,
+                          int               reconnect,
                           void              *localdata)
 {
         lnet_nid_t *client_nid = localdata;
         int        rc, newnid;
         ENTRY;
 
-        rc = lprocfs_exp_setup(exp, client_nid, &newnid);
+        rc = lprocfs_exp_setup(exp, client_nid, reconnect, &newnid);
         if (rc) {
                 /* Mask error for already created
                  * /proc entries */
@@ -67,6 +68,5 @@ int mdt_export_stats_init(struct obd_device *obd,
         }
         RETURN(0);
  clean:
-        lprocfs_exp_cleanup(exp);
         return rc;
 }