From fab8261f26277c4c707de877db039fb7daba7236 Mon Sep 17 00:00:00 2001 From: huanghua Date: Thu, 23 Nov 2006 05:17:28 +0000 Subject: [PATCH] fix a typo and clear out the fid. --- lustre/mdt/mdt_open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.8.3.1