- rc = mo_xattr_get(info->mti_env, mdt_object_child(o), &LU_BUF_NULL,
- XATTR_NAME_LOV);
- if (rc < 0 && rc != -ENODATA)
- GOTO(out_lock, rc);
- else if (rc > 0) /* has LOV EA*/
- tmp_ma->ma_valid |= MA_LOV;
+ /**
+ * If mti_big_lmm_used is set, it indicates that mti_big_lmm
+ * should contain valid LOV EA data, and can be used directly.
+ */
+ if (!info->mti_big_lmm_used) {
+ rc = mdt_big_xattr_get(info, o, XATTR_NAME_LOV);
+ if (rc < 0 && rc != -ENODATA)
+ GOTO(out_lock, rc);
+
+ /* No LOV EA */
+ if (rc == -ENODATA)
+ GOTO(out_lock, rc = 0);
+
+ rc = 0;
+ }