From 55f1bc2255a7d70b0695d652062aadac9b1b6a69 Mon Sep 17 00:00:00 2001 From: shaver Date: Thu, 7 Aug 2003 17:10:52 +0000 Subject: [PATCH] fix some lprocfs rot, b=1732, r=phik --- lustre/ptlbd/client.c | 6 +++++- lustre/ptlbd/server.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lustre/ptlbd/client.c b/lustre/ptlbd/client.c index 0a6ad8f..af603fd 100644 --- a/lustre/ptlbd/client.c +++ b/lustre/ptlbd/client.c @@ -191,11 +191,15 @@ static struct obd_ops ptlbd_cl_obd_ops = { o_disconnect: ptlbd_cl_disconnect, }; +static struct lprocfs_vars lprocfs_obd_vars[] = { {0} }; +static struct lprocfs_vars lprocfs_module_vars[] = { {0} }; +LPROCFS_INIT_VARS(ptlbd_cl, lprocfs_module_vars, lprocfs_obd_vars) + int ptlbd_cl_init(void) { struct lprocfs_static_vars lvars; - lprocfs_init_vars(ptlbd,&lvars); + lprocfs_init_vars(ptlbd_cl,&lvars); return class_register_type(&ptlbd_cl_obd_ops, lvars.module_vars, OBD_PTLBD_CL_DEVICENAME); } diff --git a/lustre/ptlbd/server.c b/lustre/ptlbd/server.c index d293a86..8dfda2b 100644 --- a/lustre/ptlbd/server.c +++ b/lustre/ptlbd/server.c @@ -98,11 +98,15 @@ static struct obd_ops ptlbd_sv_obd_ops = { o_disconnect: class_disconnect, }; +static struct lprocfs_vars lprocfs_obd_vars[] = { {0} }; +static struct lprocfs_vars lprocfs_module_vars[] = { {0} }; +LPROCFS_INIT_VARS(ptlbd_sv, lprocfs_module_vars, lprocfs_obd_vars) + int ptlbd_sv_init(void) { struct lprocfs_static_vars lvars; - lprocfs_init_vars(ptlbd,&lvars); + lprocfs_init_vars(ptlbd_sv,&lvars); return class_register_type(&ptlbd_sv_obd_ops, lvars.module_vars, OBD_PTLBD_SV_DEVICENAME); } -- 1.8.3.1