From c10f2ecf9896548ce856a71ec60c5d51dd526600 Mon Sep 17 00:00:00 2001 From: ericm Date: Tue, 16 Sep 2003 09:53:47 +0000 Subject: [PATCH] [liblustre]: if pnode revalidate success, intent should be attached onto the inode. it's the temporary way since libsysio don't recongnize intent at the moment. --- lustre/liblustre/namei.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lustre/liblustre/namei.c b/lustre/liblustre/namei.c index 6eaf84cf..3d9ac59 100644 --- a/lustre/liblustre/namei.c +++ b/lustre/liblustre/namei.c @@ -327,6 +327,8 @@ int llu_pb_revalidate(struct pnode *pnode, int flags, struct lookup_intent *it) spin_unlock(&dcache_lock); d_rehash(de); */ + if (it->it_op & (IT_OPEN | IT_GETATTR)) + LL_SAVE_INTENT(pb->pb_ino, it); RETURN(1); out: if (req) @@ -340,6 +342,8 @@ int llu_pb_revalidate(struct pnode *pnode, int flags, struct lookup_intent *it) } else { llu_lookup_finish_locks(it, pnode); llu_i2info(pb->pb_ino)->lli_stale_flag = 0; + if (it->it_op & (IT_OPEN | IT_GETATTR)) + LL_SAVE_INTENT(pb->pb_ino, it); } RETURN(rc); } -- 1.8.3.1