- /* if seq is FID_SEQ_OST_MDT0 then we have IDIF and resid was built
- * using osc_build_res_name function. */
- if (fid_seq_is_mdt0(name->name[LUSTRE_RES_ID_VER_OID_OFF])) {
- struct ost_id ostid;
-
- ostid.oi_id = name->name[LUSTRE_RES_ID_SEQ_OFF];
- ostid.oi_seq = name->name[LUSTRE_RES_ID_VER_OID_OFF];
- fid_ostid_unpack(fid, &ostid, 0);
- } else {
- fid->f_seq = name->name[LUSTRE_RES_ID_SEQ_OFF];
- fid->f_oid = (__u32)name->name[LUSTRE_RES_ID_VER_OID_OFF];
- fid->f_ver = name->name[LUSTRE_RES_ID_VER_OID_OFF] >> 32;
- }
+ /* To keep compatiblity, res[0] = oi_id, res[1] = oi_seq. */
+ struct ost_id ostid;
+
+ ostid.oi_id = name->name[LUSTRE_RES_ID_SEQ_OFF];
+ ostid.oi_seq = name->name[LUSTRE_RES_ID_VER_OID_OFF];
+ fid_ostid_unpack(fid, &ostid, 0);