Whamcloud - gitweb
LU-8066 obdclass: Remove lprocfs_obd_short_io_bytes_* declarations
[fs/lustre-release.git] / lustre / lmv / lmv_fld.c
index db45c4b..0b76f7b 100644 (file)
@@ -27,7 +27,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  */
 
 #define DEBUG_SUBSYSTEM S_LMV
@@ -78,11 +77,11 @@ int lmv_fld_lookup(struct lmv_obd *lmv, const struct lu_fid *fid, u32 *mds)
        CDEBUG(D_INODE, "FLD lookup got mds #%x for fid="DFID"\n",
               *mds, PFID(fid));
 
-       if (*mds >= lmv->desc.ld_tgt_count) {
+       if (*mds >= lmv->lmv_mdt_descs.ltd_tgts_size) {
                rc = -EINVAL;
                CERROR("%s: FLD lookup got invalid mds #%x (max: %x) for fid="DFID": rc = %d\n",
-                      obd->obd_name, *mds, lmv->desc.ld_tgt_count, PFID(fid),
-                      rc);
+                      obd->obd_name, *mds, lmv->lmv_mdt_descs.ltd_tgts_size,
+                      PFID(fid), rc);
        }
        RETURN(rc);
 }