X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Flmv%2Flmv_obd.c;h=5c452dbde24996fcfc062d6efc79ffb65f148bcd;hp=8e9d844c58baf364149783230d52900f0428d457;hb=1ae726743b5a051bb4daa731d93496a3e7f7a93c;hpb=635421641bfa8a412edebd4ffbbdf05fd0c47410 diff --git a/lustre/lmv/lmv_obd.c b/lustre/lmv/lmv_obd.c index 8e9d844..5c452db 100644 --- a/lustre/lmv/lmv_obd.c +++ b/lustre/lmv/lmv_obd.c @@ -3036,7 +3036,7 @@ static int lmv_unpack_md_v1(struct obd_export *exp, struct lmv_stripe_md *lsm, lsm->lsm_md_layout_version); stripe_count = le32_to_cpu(lmm1->lmv_stripe_count); - for (i = 0; i < le32_to_cpu(stripe_count); i++) { + for (i = 0; i < stripe_count; i++) { fid_le_to_cpu(&lsm->lsm_md_oinfo[i].lmo_fid, &lmm1->lmv_stripe_fids[i]); rc = lmv_fld_lookup(lmv, &lsm->lsm_md_oinfo[i].lmo_fid,