#endif
int class_register_type(const struct obd_ops *dt_ops,
const struct md_ops *md_ops, bool enable_proc,
- struct ldebugfs_vars *module_vars,
const char *nm, struct lu_device_type *ldt);
int class_unregister_type(const char *nm);
static int __init lmv_init(void)
{
- return class_register_type(&lmv_obd_ops, &lmv_md_ops, true, NULL,
+ return class_register_type(&lmv_obd_ops, &lmv_md_ops, true,
LUSTRE_LMV_NAME, NULL);
}
if (rc)
return rc;
- rc = class_register_type(&lod_obd_device_ops, NULL, true, NULL,
+ rc = class_register_type(&lod_obd_device_ops, NULL, true,
LUSTRE_LOD_NAME, &lod_device_type);
if (rc) {
lu_kmem_fini(lod_caches);
return -ENOMEM;
}
- rc = class_register_type(&lov_obd_ops, NULL, true, NULL,
+ rc = class_register_type(&lov_obd_ops, NULL, true,
LUSTRE_LOV_NAME, &lov_device_type);
if (rc) {
kmem_cache_destroy(lov_oinfo_slab);
goto out_dev;
}
- rc = class_register_type(&mdc_obd_ops, &mdc_md_ops, true, NULL,
+ rc = class_register_type(&mdc_obd_ops, &mdc_md_ops, true,
LUSTRE_MDC_NAME, &mdc_device_type);
if (rc)
goto out_class;
changelog_orig_logops = llog_common_cat_ops;
changelog_orig_logops.lop_write_rec = mdd_changelog_write_rec;
- rc = class_register_type(&mdd_obd_device_ops, NULL, false, NULL,
+ rc = class_register_type(&mdd_obd_device_ops, NULL, false,
LUSTRE_MDD_NAME, &mdd_device_type);
if (rc)
lu_kmem_fini(mdd_caches);
if (rc)
GOTO(lu_fini, rc);
- rc = class_register_type(&mdt_obd_device_ops, NULL, true, NULL,
+ rc = class_register_type(&mdt_obd_device_ops, NULL, true,
LUSTRE_MDT_NAME, &mdt_device_type);
if (rc)
GOTO(mds_fini, rc);
int mds_mod_init(void)
{
- return class_register_type(&mds_obd_device_ops, NULL, false, NULL,
+ return class_register_type(&mds_obd_device_ops, NULL, false,
LUSTRE_MDS_NAME, &mds_device_type);
}
static int __init mgc_init(void)
{
- return class_register_type(&mgc_obd_ops, NULL, false, NULL,
+ return class_register_type(&mgc_obd_ops, NULL, false,
LUSTRE_MGC_NAME, NULL);
}
static int __init mgs_init(void)
{
- return class_register_type(&mgs_obd_device_ops, NULL, true, NULL,
+ return class_register_type(&mgs_obd_device_ops, NULL, true,
LUSTRE_MGS_NAME, &mgs_device_type);
}
int class_register_type(const struct obd_ops *dt_ops,
const struct md_ops *md_ops,
- bool enable_proc, struct ldebugfs_vars *vars,
+ bool enable_proc,
const char *name, struct lu_device_type *ldt)
{
struct obd_type *type;
}
#endif
type->typ_debugfs_entry = debugfs_create_dir(name, debugfs_lustre_root);
- ldebugfs_add_vars(type->typ_debugfs_entry, vars, type);
rc = kobject_add(&type->typ_kobj, &lustre_kset->kobj, "%s", name);
if (rc)
static int __init llog_test_init(void)
{
- return class_register_type(&llog_obd_ops, NULL, false, NULL,
+ return class_register_type(&llog_obd_ops, NULL, false,
"llog_test", NULL);
}
if (rc != 0)
goto failed_0;
- rc = class_register_type(&echo_obd_ops, NULL, true, NULL,
+ rc = class_register_type(&echo_obd_ops, NULL, true,
LUSTRE_ECHO_NAME, &echo_srv_type);
if (rc != 0)
goto failed_1;
rc = lu_kmem_init(echo_caches);
if (rc == 0) {
rc = class_register_type(&echo_client_obd_ops, NULL, false,
- NULL, LUSTRE_ECHO_CLIENT_NAME,
+ LUSTRE_ECHO_CLIENT_NAME,
&echo_device_type);
if (rc)
lu_kmem_fini(echo_caches);
if (rc)
goto out_caches;
- rc = class_register_type(&ofd_obd_ops, NULL, true, NULL,
+ rc = class_register_type(&ofd_obd_ops, NULL, true,
LUSTRE_OST_NAME, &ofd_device_type);
if (rc)
goto out_ofd_access_log;
if (rc)
RETURN(rc);
- rc = class_register_type(&osc_obd_ops, NULL, true, NULL,
+ rc = class_register_type(&osc_obd_ops, NULL, true,
LUSTRE_OSC_NAME, &osc_device_type);
if (rc)
GOTO(out_kmem, rc);
(void *)kallsyms_lookup_name("security_file_alloc");
#endif
- rc = class_register_type(&osd_obd_device_ops, NULL, true, NULL,
+ rc = class_register_type(&osd_obd_device_ops, NULL, true,
LUSTRE_OSD_LDISKFS_NAME, &osd_device_type);
if (rc) {
lu_kmem_fini(ldiskfs_caches);
if (rc)
return rc;
- rc = class_register_type(&osd_obd_device_ops, NULL, true, NULL,
+ rc = class_register_type(&osd_obd_device_ops, NULL, true,
LUSTRE_OSD_ZFS_NAME, &osd_device_type);
if (rc)
lu_kmem_fini(osd_caches);
if (rc)
return rc;
- rc = class_register_type(&osp_obd_device_ops, NULL, false, NULL,
+ rc = class_register_type(&osp_obd_device_ops, NULL, false,
LUSTRE_OSP_NAME, &osp_device_type);
if (rc != 0) {
lu_kmem_fini(osp_caches);
return rc;
}
- rc = class_register_type(&lwp_obd_device_ops, NULL, false, NULL,
+ rc = class_register_type(&lwp_obd_device_ops, NULL, false,
LUSTRE_LWP_NAME, &lwp_device_type);
if (rc != 0) {
class_unregister_type(LUSTRE_OSP_NAME);
ENTRY;
- rc = class_register_type(&ost_obd_ops, NULL, false, NULL,
+ rc = class_register_type(&ost_obd_ops, NULL, false,
LUSTRE_OSS_NAME, NULL);
RETURN(rc);
int rc;
ENTRY;
- rc = class_register_type(&qmt_obd_ops, NULL, true, NULL,
+ rc = class_register_type(&qmt_obd_ops, NULL, true,
LUSTRE_QMT_NAME, &qmt_device_type);
RETURN(rc);
}