From 7147cc946bead75eee909ea1134bc542c0b09c4f Mon Sep 17 00:00:00 2001 From: Kevin Coffman Date: Thu, 2 May 2002 07:35:33 +0000 Subject: [PATCH] linux-revalidate-root-always-good-20020502 avoid ESTALE in 2.4.19-pre7 --- src/afs/LINUX/osi_vnodeops.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 4c2fd2e..9bb463b 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -825,6 +825,13 @@ static int afs_linux_dentry_revalidate(struct dentry *dp) if (!vcp || !parentvcp) goto done; + /* If it is the AFS root, then there's no chance it needs + revalidating */ + if (vcp == afs_globalVp) { + bad_dentry = 0; + goto done; + } + if (code = afs_InitReq(&treq, credp)) goto done; -- 1.9.4