From: Kevin Coffman Date: Thu, 2 May 2002 16:36:01 +0000 (+0000) Subject: avoid ESTALE in 2.4.19-pre7 X-Git-Tag: openafs-stable-1_2_4~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=081a7870ef98b4ec7027a3bc22fde2b0a244f96f;p=packages%2Fo%2Fopenafs.git avoid ESTALE in 2.4.19-pre7 (cherry picked from commit 7147cc946bead75eee909ea1134bc542c0b09c4f) --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index a3e2262e6..7db164025 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -716,6 +716,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;