+ struct nid_stat *tmp = exp->exp_nid_stats;
+
+ tmp->nid_stats = lprocfs_alloc_stats(LPROC_MDT_LAST,
+ LPROCFS_STATS_FLAG_NOPERCPU);
+ if (tmp->nid_stats == NULL)
+ RETURN(-ENOMEM);
+ mdt_stats_counter_init(tmp->nid_stats);
+ rc = lprocfs_register_stats(tmp->nid_proc, "stats",
+ tmp->nid_stats);
+ if (rc)
+ GOTO(clean, rc);
+ rc = lprocfs_nid_ldlm_stats_init(tmp);