From 0a5ebc148879be68acdb12fbe72b65cb88c410d9 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Tue, 2 Oct 2007 12:57:24 -0400 Subject: [PATCH] NFSv4: Don't revalidate the directory in nfs_atomic_lookup() Why bother, since the call to nfs4_atomic_open() will do it for us. Signed-off-by: Trond Myklebust --- fs/nfs/dir.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index cf80cf234e..9ca38ab0e0 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -994,14 +994,6 @@ static struct dentry *nfs_atomic_lookup(struct inode *dir, struct dentry *dentry /* Open the file on the server */ lock_kernel(); - /* Revalidate parent directory attribute cache */ - error = nfs_revalidate_inode(NFS_SERVER(dir), dir); - if (error < 0) { - res = ERR_PTR(error); - unlock_kernel(); - goto out; - } - res = nfs4_atomic_open(dir, dentry, nd); unlock_kernel(); if (IS_ERR(res)) { -- 2.39.5