-static void oinfo_get_fid(const struct lov_oinfo *oinfo, struct lu_fid *fid)
-{
- __u64 idx = oinfo->loi_id;
-
- /* See idif definition in wiki:CMD3_interoperability_architecture */
-
- LASSERT(oinfo->loi_gr < 1ULL << 16);
- LASSERT(oinfo->loi_id < 1ULL << 49);
- ENTRY;
-
- /*
- * Now that the fid of stripe is not unique now, ost_idx have to
- * be used to make it unique. This is ok because the stripe fids
- * are just used in client side(to locate the objects). -jay
- */
- fid->f_seq = ((__u64)oinfo->loi_ost_idx) << 32 |
- oinfo->loi_gr << 16 | idx >> 32;
- fid->f_oid = idx; /* truncated to 32 bits by assignment */
- fid->f_ver = 0;
- EXIT;
-}
-