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/write.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/write.c')
-rw-r--r-- | fs/nfs/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index f05a90338a76..7a39b3d424da 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1293,7 +1293,7 @@ static bool nfs_write_pageuptodate(struct page *page, struct inode *inode, if (nfs_have_delegated_attributes(inode)) goto out; if (nfsi->cache_validity & - (NFS_INO_REVAL_PAGECACHE | NFS_INO_INVALID_SIZE)) + (NFS_INO_INVALID_CHANGE | NFS_INO_INVALID_SIZE)) return false; smp_rmb(); if (test_bit(NFS_INO_INVALIDATING, &nfsi->flags) && pagelen != 0) |