Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7c5da01 authored by Peng Tao's avatar Peng Tao Committed by Greg Kroah-Hartman
Browse files

staging/lustre/obdclass: move obd_sysctl_init out of class_procfs_init



It is not strictly related to procfs. Besides, we already call obd_sysctl_clean
outside of class_procfs_clean.

Signed-off-by: default avatarPeng Tao <bergwolf@gmail.com>
Signed-off-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0396ec9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -564,6 +564,9 @@ static int __init init_obdclass(void)
	err = obd_init_caches();
	if (err)
		return err;

	obd_sysctl_init();

	err = class_procfs_init();
	if (err)
		return err;
+0 −1
Original line number Diff line number Diff line
@@ -380,7 +380,6 @@ int class_procfs_init(void)
{
	int rc = 0;

	obd_sysctl_init();
	proc_lustre_root = lprocfs_register("fs/lustre", NULL,
					    lprocfs_base, NULL);
	if (IS_ERR(proc_lustre_root)) {