diff options
author | Oleg Drokin <green@linuxhacker.ru> | 2015-05-21 15:32:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-31 11:18:23 +0900 |
commit | 9b8013023cb62360b56c04313687e93a1c2bf3d6 (patch) | |
tree | 9637d2ceb6465c1b5b9e066defdf65128de99e05 /drivers/staging/lustre/lustre/mgc | |
parent | staging/lustre/obdecho: Remove procfs registration (diff) | |
download | linux-dev-9b8013023cb62360b56c04313687e93a1c2bf3d6.tar.xz linux-dev-9b8013023cb62360b56c04313687e93a1c2bf3d6.zip |
staging/lustre/obdclass: Prepare for procfs to sysfs migration
Add necessary plumbing to register obd types and instances
under /sys/fs/lustre
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/mgc')
-rw-r--r-- | drivers/staging/lustre/lustre/mgc/mgc_request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/mgc/mgc_request.c b/drivers/staging/lustre/lustre/mgc/mgc_request.c index 5fff272f7b9f..517b8ce1a44a 100644 --- a/drivers/staging/lustre/lustre/mgc/mgc_request.c +++ b/drivers/staging/lustre/lustre/mgc/mgc_request.c @@ -722,7 +722,7 @@ static int mgc_cleanup(struct obd_device *obd) static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) { - struct lprocfs_static_vars lvars; + struct lprocfs_static_vars lvars = { NULL }; int rc; ptlrpcd_addref(); @@ -738,7 +738,7 @@ static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) } lprocfs_mgc_init_vars(&lvars); - lprocfs_obd_setup(obd, lvars.obd_vars); + lprocfs_obd_setup(obd, lvars.obd_vars, lvars.sysfs_vars); sptlrpc_lprocfs_cliobd_attach(obd); if (atomic_inc_return(&mgc_count) == 1) { |