]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Aug 2015 19:21:58 +0000 (12:21 -0700)
commitf22d5595d56d15b7aadc0ff5cc47e8811d4c9eb1
tree5d4669c4b5db7236aa99d61760a1b0c026f63085
parentfe7c1d336dff21503aa08bda735519aeed795afb
NFS: Don't revalidate the mapping if both size and change attr are up to date

commit 85a23cee3f2c928475f31777ead5a71340a12fc3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/inode.c