From: wangdi Date: Thu, 17 May 2007 04:40:07 +0000 (+0000) Subject: Branch: b1_6 X-Git-Tag: v1_8_0_110~1615 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b3815b95520c79f2798dad85277fbd9f49112f05;p=fs%2Flustre-release.git Branch: b1_6 checking stale with right fid in ll_revalidate_it. b:12401 r:green, shadow --- diff --git a/lustre/llite/dcache.c b/lustre/llite/dcache.c index 6959df5..2a1a78a 100644 --- a/lustre/llite/dcache.c +++ b/lustre/llite/dcache.c @@ -524,9 +524,13 @@ do_lookup: struct mds_body *mds_body = lustre_msg_buf(req->rq_repmsg, DLM_REPLY_REC_OFF, sizeof(*mds_body)); + struct ll_fid fid = { 0 }; + + if (de->d_inode) + ll_inode2fid(&fid, de->d_inode); + /* see if we got same inode, if not - return error */ - if(!memcmp(&op_data.fid2, &mds_body->fid1, - sizeof(op_data.fid2))) + if(!memcmp(&fid, &mds_body->fid1, sizeof(struct ll_fid))) goto revalidate_finish; ll_intent_release(it); }