]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
avoid ESTALE in 2.4.19-pre7
authorKevin Coffman <kwc@citi.umich.edu>
Thu, 2 May 2002 16:36:01 +0000 (16:36 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Thu, 2 May 2002 16:36:01 +0000 (16:36 +0000)
(cherry picked from commit 7147cc946bead75eee909ea1134bc542c0b09c4f)

src/afs/LINUX/osi_vnodeops.c

index a3e2262e62d013e2424eb01363565be506d026c9..7db16402579332cb68eea612f733b50f6443cab8 100644 (file)
@@ -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;