Whamcloud - gitweb
fix some lprocfs rot, b=1732, r=phik
authorshaver <shaver>
Thu, 7 Aug 2003 17:10:52 +0000 (17:10 +0000)
committershaver <shaver>
Thu, 7 Aug 2003 17:10:52 +0000 (17:10 +0000)
lustre/ptlbd/client.c
lustre/ptlbd/server.c

index 0a6ad8f..af603fd 100644 (file)
@@ -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);
 }
index d293a86..8dfda2b 100644 (file)
@@ -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);
 }