NFS: Write the entire file if a server reboot occurs during fsync()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 11 Sep 2012 20:19:38 +0000 (16:19 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 20:03:05 +0000 (16:03 -0400)
commitdcfc4f25461813e8a2dd43b052aa1e0be155742f
tree82edc73de99f2ce16fa9072964337699158abd34
parent05990d1bf2708b9e84d67074551f964d3738eedc
NFS: Write the entire file if a server reboot occurs during fsync()

This is to ensure that we don't clear the NFS_CONTEXT_RESEND_WRITES
flag while there are still writes that haven't been resent.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/file.c
fs/nfs/nfs4file.c