Whamcloud - gitweb
LU-3569 ofd: packing ost_idx in IDIF
[fs/lustre-release.git] / lustre / lod / lod_lov.c
index 038e0df..e60ba8b 100644 (file)
@@ -717,7 +717,7 @@ int lod_initialize_objects(const struct lu_env *env, struct lod_object *lo,
 
        for (i = 0; i < lo->ldo_stripenr; i++) {
                ostid_le_to_cpu(&objs[i].l_ost_oi, &info->lti_ostid);
-               idx = le64_to_cpu(objs[i].l_ost_idx);
+               idx = le32_to_cpu(objs[i].l_ost_idx);
                rc = ostid_to_fid(&info->lti_fid, &info->lti_ostid, idx);
                if (rc != 0)
                        GOTO(out, rc);