X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fmgs%2Flproc_mgs.c;h=7e8c3f18ce0129e06e6fdd100d448861da7dcc06;hb=refs%2Fchanges%2F33%2F46833%2F9;hp=4cb65fbdf88b06687249c2996da41bfe275816b6;hpb=84b1ca8618129d4e337cadc87c12e44991025a97;p=fs%2Flustre-release.git diff --git a/lustre/mgs/lproc_mgs.c b/lustre/mgs/lproc_mgs.c index 4cb65fb..7e8c3f1 100644 --- a/lustre/mgs/lproc_mgs.c +++ b/lustre/mgs/lproc_mgs.c @@ -353,27 +353,25 @@ void lproc_mgs_cleanup(struct mgs_device *mgs) mgs->mgs_proc_live = NULL; } - lprocfs_free_per_client_stats(obd); + lprocfs_free_per_client_stats(obd); lprocfs_obd_cleanup(obd); - lprocfs_free_obd_stats(obd); - lprocfs_free_md_stats(obd); + lprocfs_free_obd_stats(obd); + lprocfs_free_md_stats(obd); } void mgs_counter_incr(struct obd_export *exp, int opcode) { - lprocfs_counter_incr(exp->exp_obd->obd_stats, opcode); - if (exp->exp_nid_stats && exp->exp_nid_stats->nid_stats != NULL) - lprocfs_counter_incr(exp->exp_nid_stats->nid_stats, opcode); + lprocfs_counter_incr(exp->exp_obd->obd_stats, opcode); + if (exp->exp_nid_stats && exp->exp_nid_stats->nid_stats != NULL) + lprocfs_counter_incr(exp->exp_nid_stats->nid_stats, opcode); } void mgs_stats_counter_init(struct lprocfs_stats *stats) { - lprocfs_counter_init(stats, LPROC_MGS_CONNECT, 0, "connect", "reqs"); - lprocfs_counter_init(stats, LPROC_MGS_DISCONNECT, 0, "disconnect", - "reqs"); - lprocfs_counter_init(stats, LPROC_MGS_EXCEPTION, 0, "exception", - "reqs"); - lprocfs_counter_init(stats, LPROC_MGS_TARGET_REG, 0, "tgtreg", "reqs"); - lprocfs_counter_init(stats, LPROC_MGS_TARGET_DEL, 0, "tgtdel", "reqs"); + lprocfs_counter_init(stats, LPROC_MGS_CONNECT, 0, "connect"); + lprocfs_counter_init(stats, LPROC_MGS_DISCONNECT, 0, "disconnect"); + lprocfs_counter_init(stats, LPROC_MGS_EXCEPTION, 0, "exception"); + lprocfs_counter_init(stats, LPROC_MGS_TARGET_REG, 0, "tgtreg"); + lprocfs_counter_init(stats, LPROC_MGS_TARGET_DEL, 0, "tgtdel"); } #endif