summaryrefslogtreecommitdiffstats
path: root/fs/nfs/delegation.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-11 20:31:24 +0200
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-14 15:36:29 +0200
commitcc7f2dae63bca9579d65a46f3bf2c48a15961e19 (patch)
tree5746e222613eb13178f7423870f551eeb33d38ac /fs/nfs/delegation.h
parentNFSv4: link must update the inode nlink. (diff)
downloadlinux-cc7f2dae63bca9579d65a46f3bf2c48a15961e19.tar.xz
linux-cc7f2dae63bca9579d65a46f3bf2c48a15961e19.zip
NFS: Don't store NFS_INO_REVAL_FORCED
NFS_INO_REVAL_FORCED is intended to tell us that the cache needs revalidation despite the fact that we hold a delegation. We shouldn't need to store it anymore, though. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/delegation.h')
-rw-r--r--fs/nfs/delegation.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/delegation.h b/fs/nfs/delegation.h
index 9b00a0b7f832..c19b4fd20781 100644
--- a/fs/nfs/delegation.h
+++ b/fs/nfs/delegation.h
@@ -84,8 +84,7 @@ int nfs4_inode_make_writeable(struct inode *inode);
static inline int nfs_have_delegated_attributes(struct inode *inode)
{
- return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ) &&
- !(NFS_I(inode)->cache_validity & NFS_INO_REVAL_FORCED);
+ return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ);
}
#endif