void dt_global_fini(void);
int dt_tunables_init(struct dt_device *dt, struct obd_type *type,
const char *name, struct ldebugfs_vars *list);
-int dt_tunables_fini(struct dt_device *dt);
+void dt_tunables_fini(struct dt_device *dt);
#endif /* __LUSTRE_DT_OBJECT_H */
complete(&dt->dd_kobj_unregister);
}
-int dt_tunables_fini(struct dt_device *dt)
+void dt_tunables_fini(struct dt_device *dt)
{
if (!dt)
- return -EINVAL;
+ return;
if (dt->dd_def_attrs) {
sysfs_remove_files(&dt->dd_kobj, dt->dd_def_attrs);
kobject_put(&dt->dd_kobj);
wait_for_completion(&dt->dd_kobj_unregister);
}
-
- return 0;
}
EXPORT_SYMBOL(dt_tunables_fini);
/* osd_lproc.c */
extern struct lprocfs_vars lprocfs_osd_obd_vars[];
int osd_procfs_init(struct osd_device *osd, const char *name);
-int osd_procfs_fini(struct osd_device *osd);
+void osd_procfs_fini(struct osd_device *osd);
void osd_brw_stats_update(struct osd_device *osd, struct osd_iobuf *iobuf);
#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(3, 0, 52, 0)
int osd_register_proc_index_in_idif(struct osd_device *osd);
return rc;
}
-int osd_procfs_fini(struct osd_device *osd)
+void osd_procfs_fini(struct osd_device *osd)
{
lprocfs_fini_brw_stats(&osd->od_brw_stats);
if (osd->od_proc_entry)
lprocfs_remove(&osd->od_proc_entry);
- return dt_tunables_fini(&osd->od_dt_dev);
+ dt_tunables_fini(&osd->od_dt_dev);
}
struct lu_device *d)
{
struct osd_device *o = osd_dev(d);
- int rc;
ENTRY;
osd_index_backup(env, o, false);
/* now with all the callbacks completed we can cleanup the remainings */
osd_shutdown(env, o);
osd_scrub_cleanup(env, o);
-
- rc = osd_procfs_fini(o);
- if (rc) {
- CERROR("proc fini error %d\n", rc);
- RETURN(ERR_PTR(rc));
- }
+ osd_procfs_fini(o);
if (o->od_os)
osd_umount(env, o);
extern struct lprocfs_vars lprocfs_osd_obd_vars[];
int osd_procfs_init(struct osd_device *osd, const char *name);
-int osd_procfs_fini(struct osd_device *osd);
+void osd_procfs_fini(struct osd_device *osd);
/* osd_object.c */
extern char *osd_obj_tag;
return rc;
}
-int osd_procfs_fini(struct osd_device *osd)
+void osd_procfs_fini(struct osd_device *osd)
{
ENTRY;
osd->od_proc_entry = NULL;
}
- return dt_tunables_fini(&osd->od_dt_dev);
+ dt_tunables_fini(&osd->od_dt_dev);
}