Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a5ebc14 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent f2c77f4e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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)) {