aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/file.c
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@hammerspace.com>2021-03-25 21:07:21 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2021-04-12 20:11:44 -0400
commit13c0b082b6a90b1b87b5fb100983d05bcc75d9b6 (patch)
tree7659e4ff52383cd640fedf89f6057ade10b69788 /fs/nfs/file.c
parentNFS: Add a cache validity flag argument to nfs_revalidate_inode() (diff)
downloadlinux-dev-13c0b082b6a90b1b87b5fb100983d05bcc75d9b6.tar.xz
linux-dev-13c0b082b6a90b1b87b5fb100983d05bcc75d9b6.zip
NFS: Replace use of NFS_INO_REVAL_PAGECACHE when checking cache validity
When checking cache validity, be more specific than just 'we want to check the page cache validity'. In almost all cases, we want to check that change attribute, and possibly also the size. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/file.c')
-rw-r--r--fs/nfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/file.c b/fs/nfs/file.c
index 16ad5050e046..1fef107961bc 100644
--- a/fs/nfs/file.c
+++ b/fs/nfs/file.c
@@ -105,7 +105,7 @@ static int nfs_revalidate_file_size(struct inode *inode, struct file *filp)
if (filp->f_flags & O_DIRECT)
goto force_reval;
- if (nfs_check_cache_invalid(inode, NFS_INO_REVAL_PAGECACHE))
+ if (nfs_check_cache_invalid(inode, NFS_INO_INVALID_SIZE))
goto force_reval;
return 0;
force_reval: