From: shaver Date: Thu, 7 Aug 2003 17:10:52 +0000 (+0000) Subject: fix some lprocfs rot, b=1732, r=phik X-Git-Tag: 0.9.1~381 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=55f1bc2255a7d70b0695d652062aadac9b1b6a69;p=fs%2Flustre-release.git fix some lprocfs rot, b=1732, r=phik --- 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); }