NFS: Don't revalidate the mapping if both size and change attr are up to date
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 5 Jul 2015 15:02:53 +0000 (11:02 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 22 Jul 2015 21:15:53 +0000 (17:15 -0400)
commit85a23cee3f2c928475f31777ead5a71340a12fc3
treead9490a8caf900365ee4e78cb5936e2dd6c3cb8b
parent2b83d3de4c18af49800e0b26ae013db4fcf43a4a
NFS: Don't revalidate the mapping if both size and change attr are up to date

If we've ensured that the size and the change attribute are both correct,
then there is no point in marking those attributes as needing revalidation
again. Only do so if we know the size is incorrect and was not updated.

Fixes: f2467b6f64da ("NFS: Clear NFS_INO_REVAL_PAGECACHE when...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c