Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-1304 osd: ->do_ah_init() to accept new object
[fs/lustre-release.git]
/
lustre
/
osd-zfs
/
osd_lproc.c
diff --git
a/lustre/osd-zfs/osd_lproc.c
b/lustre/osd-zfs/osd_lproc.c
index
c050acb
..
6ce8a3b
100644
(file)
--- a/
lustre/osd-zfs/osd_lproc.c
+++ b/
lustre/osd-zfs/osd_lproc.c
@@
-44,6
+44,7
@@
#define DEBUG_SUBSYSTEM S_CLASS
#include <obd.h>
#define DEBUG_SUBSYSTEM S_CLASS
#include <obd.h>
+#include <obd_class.h>
#include <lprocfs_status.h>
#include <lu_time.h>
#include <lprocfs_status.h>
#include <lu_time.h>
@@
-190,14
+191,17
@@
struct lprocfs_vars lprocfs_osd_module_vars[] = {
int osd_procfs_init(struct osd_device *osd, const char *name)
{
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);
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);
LASSERT(name != NULL);
LASSERT(type != NULL);