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

Commit 7c672654 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Ignore NFS_INO_REVAL_FORCED in nfs4_proc_access



If we hold a delegation, we don't need to care about whether or not
the inode attributes are up to date. We know we can cache the results
of this call regardless.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 2f28dc38
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4114,7 +4114,7 @@ static int _nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entry
	};
	};
	int status = 0;
	int status = 0;


	if (!nfs_have_delegated_attributes(inode)) {
	if (!nfs4_have_delegation(inode, FMODE_READ)) {
		res.fattr = nfs_alloc_fattr();
		res.fattr = nfs_alloc_fattr();
		if (res.fattr == NULL)
		if (res.fattr == NULL)
			return -ENOMEM;
			return -ENOMEM;