NFS: Don't mark the data cache as invalid if it has been flushed
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 20 Jun 2014 17:11:01 +0000 (13:11 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Tue, 24 Jun 2014 22:46:57 +0000 (18:46 -0400)
commit6edf96097b1df34fcd332f7ee4ba120fbc1d16c3
tree86dc9b545453c505149cc7adbe4f1eac3e5338d2
parentf2467b6f64da7d8446211c21f6fcd8fa10e8d948
NFS: Don't mark the data cache as invalid if it has been flushed

Now that we have functions such as nfs_write_pageuptodate() that use
the cache_validity flags to check if the data cache is valid or not,
it is a little more important to keep the flags in sync with the
state of the data cache.
In particular, we'd like to ensure that if the data cache is empty, we
don't start marking it as needing revalidation.

Reported-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/inode.c