X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fofd%2Fofd_io.c;h=c21c90334f2620509527a4835a257cfb32683201;hp=e8e41b96d37c12670fb6e77277751769b0025a5c;hb=da12d3ba35bbb86c8e5860a5ed161a55f01b69d5;hpb=e02e613f411d4273c9c1c99ee88121e641ddb4c2;ds=sidebyside diff --git a/lustre/ofd/ofd_io.c b/lustre/ofd/ofd_io.c index e8e41b9..c21c903 100644 --- a/lustre/ofd/ofd_io.c +++ b/lustre/ofd/ofd_io.c @@ -253,10 +253,7 @@ int ofd_preprw(const struct lu_env *env, int cmd, struct obd_export *exp, LASSERT(objcount == 1); LASSERT(obj->ioo_bufcnt > 0); - rc = ostid_to_fid(&info->fti_fid, &oa->o_oi, 0); - if (unlikely(rc != 0)) - RETURN(rc); - + info->fti_fid = oa->o_oi.oi_fid; if (cmd == OBD_BRW_WRITE) { rc = ofd_auth_capa(exp, &info->fti_fid, ostid_seq(&oa->o_oi), capa, CAPA_OPC_OSS_WRITE); @@ -584,9 +581,7 @@ int ofd_commitrw(const struct lu_env *env, int cmd, struct obd_export *exp, LASSERT(npages > 0); - rc = ostid_to_fid(&info->fti_fid, &oa->o_oi, 0); - if (unlikely(rc != 0)) - RETURN(rc); + info->fti_fid = oa->o_oi.oi_fid; if (cmd == OBD_BRW_WRITE) { /* Don't update timestamps if this write is older than a * setattr which modifies the timestamps. b=10150 */