diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-03-25 21:07:21 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-12 20:11:44 -0400 |
commit | 13c0b082b6a90b1b87b5fb100983d05bcc75d9b6 (patch) | |
tree | 7659e4ff52383cd640fedf89f6057ade10b69788 /fs/nfs/file.c | |
parent | 1f3208b2d6975f31b9c7c6bf174b84fe9c97492f (diff) | |
download | linux-stable-13c0b082b6a90b1b87b5fb100983d05bcc75d9b6.tar.gz linux-stable-13c0b082b6a90b1b87b5fb100983d05bcc75d9b6.tar.bz2 linux-stable-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.c | 2 |
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: |