From: huanghua Date: Thu, 23 Nov 2006 05:17:28 +0000 (+0000) Subject: fix a typo and clear out the fid. X-Git-Tag: v1_8_0_110~486^2~89 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=fab8261f26277c4c707de877db039fb7daba7236;p=fs%2Flustre-release.git fix a typo and clear out the fid. --- diff --git a/lustre/mdt/mdt_open.c b/lustre/mdt/mdt_open.c index 6e4dfc1..0df9eff 100644 --- a/lustre/mdt/mdt_open.c +++ b/lustre/mdt/mdt_open.c @@ -804,11 +804,12 @@ int mdt_reint_open(struct mdt_thread_info *info, struct mdt_lock_handle *lhc) if (IS_ERR(parent)) GOTO(out, result = PTR_ERR(parent)); + fid_zero(child_fid); result = mdo_lookup(info->mti_env, mdt_object_child(parent), rr->rr_name, child_fid, &info->mti_spec); LASSERTF(ergo(result == 0, fid_is_sane(child_fid)), "looking for "DFID"/%s, result fid="DFID"\n", - mdt_object_fid(parent), rr->rr_name, PFID(child_fid)); + PFID(mdt_object_fid(parent)), rr->rr_name, PFID(child_fid)); if (result != 0 && result != -ENOENT && result != -ESTALE) GOTO(out_parent, result);