]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd074e108b81a3eabf2621b2d407779f50b820791
tree86dc9b545453c505149cc7adbe4f1eac3e5338d2
parentc04ec2a7f41f876afbe7167f6ed498edd877b840
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