X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Fosd-zfs%2Fosd_lproc.c;h=6ce8a3bbc8be353731c2c7472a3d03384479dc27;hb=e1a430be4a4a08e39b945a35a04c8286353fb6fc;hp=c050acb9d588739133d23217c21e2d0c0038c1ff;hpb=e827449e7c0a311ff3d24bcdf3724080f4d5e528;p=fs%2Flustre-release.git diff --git a/lustre/osd-zfs/osd_lproc.c b/lustre/osd-zfs/osd_lproc.c index c050acb..6ce8a3b 100644 --- a/lustre/osd-zfs/osd_lproc.c +++ b/lustre/osd-zfs/osd_lproc.c @@ -44,6 +44,7 @@ #define DEBUG_SUBSYSTEM S_CLASS #include +#include #include #include @@ -190,14 +191,17 @@ struct lprocfs_vars lprocfs_osd_module_vars[] = { int osd_procfs_init(struct osd_device *osd, const char *name) { - struct lu_device *ld = &osd->od_dt_dev.dd_lu_dev; - struct obd_type *type = ld->ld_type->ldt_obd_type; - int rc; + struct obd_type *type; + int rc; ENTRY; if (osd->od_proc_entry) RETURN(0); + /* at the moment there is no linkage between lu_type + * and obd_type, so we lookup obd_type this way */ + type = class_search_type(LUSTRE_OSD_ZFS_NAME); + LASSERT(name != NULL); LASSERT(type != NULL);