X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_dev.c;h=bb60e94ae58169eb9a9d20e4b843954e51e0c5e0;hp=cfcb420219c532c8ae8ee46b1df850454cde8856;hb=5315db3f1066619d6effe4f778d2df3ad1ba738f;hpb=66b4fd4317f9bd721aaa485c81987cecc049d92f diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index cfcb420..bb60e94 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -1740,18 +1740,8 @@ static int ofd_create_hdl(struct tgt_session_info *tsi) out: mutex_unlock(&oseq->os_create_lock); out_nolock: - if (rc == 0) { -#if LUSTRE_VERSION_CODE < OBD_OCD_VERSION(2, 8, 53, 0) - struct ofd_thread_info *info = ofd_info(tsi->tsi_env); - struct lu_fid *fid = &info->fti_fid; - - /* For compatible purpose, it needs to convert back to - * OST ID before put it on wire. */ - *fid = rep_oa->o_oi.oi_fid; - fid_to_ostid(fid, &rep_oa->o_oi); -#endif + if (rc == 0) rep_oa->o_valid |= OBD_MD_FLID | OBD_MD_FLGROUP; - } ofd_seq_put(tsi->tsi_env, oseq); out_sem: