--- linux-2.4.19-pre10/fs/namei.c.orig Thu Apr 4 19:35:15 2002 +++ linux-2.4.19-pre10/fs/namei.c Sat Jun 8 15:23:46 2002 @@ -635,7 +635,7 @@ dentry = nd->dentry; if (dentry && dentry->d_op && dentry->d_op->d_revalidate) { err = -ESTALE; - if (!dentry->d_op->d_revalidate(dentry, 0)) { + if (!dentry->d_op->d_revalidate(dentry, lookup_flags & LOOKUP_PARENT)) { d_invalidate(dentry); break; } --- linux-2.4.19-pre10/fs/nfs/dir.c.orig Tue Mar 12 16:35:02 2002 +++ linux-2.4.19-pre10/fs/nfs/dir.c Sat Jun 8 15:20:44 2002 @@ -433,7 +433,7 @@ * If we're interested in close-to-open cache consistency, * then we revalidate the inode upon lookup. */ - if (!(server->flags & NFS_MOUNT_NOCTO) && !(flags & LOOKUP_CONTINUE)) + if (!(server->flags & NFS_MOUNT_NOCTO) && !(flags & (LOOKUP_CONTINUE|LOOKUP_PARENT))) NFS_CACHEINV(inode); return nfs_revalidate_inode(server, inode); }