From: huanghua Date: Wed, 24 May 2006 08:13:38 +0000 (+0000) Subject: fix a small defect in mdt_reint_open. X-Git-Tag: v1_8_0_110~486^2~1775 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=c56e4d551d65b88b2e5d076feaf5a0ecd4b76896;p=fs%2Flustre-release.git fix a small defect in mdt_reint_open. --- diff --git a/lustre/mdt/mdt_reint.c b/lustre/mdt/mdt_reint.c index fe7d5ca..6640657 100644 --- a/lustre/mdt/mdt_reint.c +++ b/lustre/mdt/mdt_reint.c @@ -219,7 +219,7 @@ static int mdt_reint_open(struct mdt_thread_info *info) lh, MDS_INODELOCK_UPDATE); if (IS_ERR(parent)) - return PTR_ERR(parent); + RETURN(PTR_ERR(parent)); result = mdo_lookup(info->mti_ctxt, mdt_object_child(parent), info->mti_rr.rr_name, info->mti_rr.rr_fid2); @@ -244,10 +244,8 @@ static int mdt_reint_open(struct mdt_thread_info *info) } } - if (result) - GOTO(out_parent, result); - - result = mdt_md_open(info, child); + if (result == 0) + result = mdt_md_open(info, child); mdt_object_put(info->mti_ctxt, child);