]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit44232bf761d93d9d0bc98acba914d828302f8d50
treead9490a8caf900365ee4e78cb5936e2dd6c3cb8b
parent5f627c4b5da7eca94bc5a295cb79fb257102149d
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: 6fb9a9e32ab1 ("NFS: Clear NFS_INO_REVAL_PAGECACHE when...")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c