NFS: Fake up 'wcc' attributes to prevent cache invalidation after write
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 30 Sep 2007 19:21:24 +0000 (15:21 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 9 Oct 2007 21:19:15 +0000 (17:19 -0400)
commit70ca88521fc7bee8ef0fc22033a439d4b9a2c70d
tree8e3943bfac55b59dc127393f8da0ecfc4aba424b
parentb64e8a5ef758888cb42b7c105dcfaaf51aab1baf
NFS: Fake up 'wcc' attributes to prevent cache invalidation after write

NFSv2 and v4 don't offer weak cache consistency attributes on WRITE calls.
In NFSv3, returning wcc data is optional. In all cases, we want to prevent
the client from invalidating our cached data whenever ->write_done()
attempts to update the inode attributes.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c
fs/nfs/nfs3proc.c
fs/nfs/nfs4proc.c
fs/nfs/proc.c
include/linux/nfs_fs.h
include/linux/nfs_xdr.h