Whamcloud - gitweb
LU-1303 mds: integration lod/osp into the stack
[fs/lustre-release.git] / lustre / mdd / mdd_lfsck.c
index e3b2d3e..73281ef 100644 (file)
@@ -48,7 +48,7 @@ static inline char *mdd_lfsck2name(struct md_lfsck *lfsck)
        struct mdd_device *mdd;
 
        mdd = container_of0(lfsck, struct mdd_device, mdd_lfsck);
-       return mdd->mdd_obd_dev->obd_name;
+       return mdd2obd_dev(mdd)->obd_name;
 }
 
 void mdd_lfsck_set_speed(struct md_lfsck *lfsck, __u32 limit)
@@ -320,7 +320,7 @@ int mdd_lfsck_setup(const struct lu_env *env, struct mdd_device *mdd)
                lu_object_put(env, &obj->do_lu);
                if (rc == -ENOTSUPP) {
                        CERROR("%s: Lustre LFSCK unsupported on this device.\n",
-                               mdd->mdd_obd_dev->obd_name);
+                               mdd2obd_dev(mdd)->obd_name);
                        rc = 0;
                }
                return rc;