NFS: Fix attribute revalidation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sun, 3 Jun 2018 15:56:05 +0000 (11:56 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Jun 2018 19:03:58 +0000 (15:03 -0400)
commit0b467264d0db011cd48f5adf24dd40543bceaccd
tree21b1374c3cf7fb00a1839d1badc176e25bfb8c52
parent6a97d02dfe7fca29a3acec66ff51a1ceecacaa20
NFS: Fix attribute revalidation

Don't mark attributes as invalid just because they have changed. Instead,
for the purposes of adjusting the attribute cache timeout, keep a
separate variable that tracks whether or not a change occurred.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c