]> 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)
commit7cb7f35a52f54c2b8aee1a9093ae2362fde934ab
tree86dc9b545453c505149cc7adbe4f1eac3e5338d2
parent6fb9a9e32ab1166a9fc4ec019c63a7c217638163
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