|
@@ -193,7 +193,6 @@ int class_register_type(struct obd_ops *dt_ops, struct md_ops *md_ops,
|
|
|
strcpy(type->typ_name, name);
|
|
|
spin_lock_init(&type->obd_type_lock);
|
|
|
|
|
|
-#ifdef LPROCFS
|
|
|
type->typ_procroot = lprocfs_register(type->typ_name, proc_lustre_root,
|
|
|
vars, type);
|
|
|
if (IS_ERR(type->typ_procroot)) {
|
|
@@ -201,7 +200,7 @@ int class_register_type(struct obd_ops *dt_ops, struct md_ops *md_ops,
|
|
|
type->typ_procroot = NULL;
|
|
|
GOTO (failed, rc);
|
|
|
}
|
|
|
-#endif
|
|
|
+
|
|
|
if (ldt != NULL) {
|
|
|
type->typ_lu = ldt;
|
|
|
rc = lu_device_type_init(ldt);
|