Whamcloud - gitweb
LU-12477 llite: remove unused ll_teardown_mmaps()
[fs/lustre-release.git] / lustre / mdt / mdt_fs.c
index 14777a2..90c0269 100644 (file)
@@ -67,8 +67,6 @@ int mdt_export_stats_init(struct obd_device *obd, struct obd_export *exp,
        int rc;
        ENTRY;
 
-       LASSERT(!obd->obd_uses_nid_stats);
-
        rc = lprocfs_exp_setup(exp, client_nid);
        if (rc != 0)
                /* Mask error for already created /proc entries */
@@ -80,7 +78,7 @@ int mdt_export_stats_init(struct obd_device *obd, struct obd_export *exp,
        if (stats->nid_stats == NULL)
                RETURN(-ENOMEM);
 
-       mdt_stats_counter_init(stats->nid_stats);
+       mdt_stats_counter_init(stats->nid_stats, 0);
 
        rc = lprocfs_register_stats(stats->nid_proc, "stats", stats->nid_stats);
        if (rc != 0) {