NFS: Ensure that we mark the inode as dirty if we exit early from commit
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 26 May 2010 12:42:11 +0000 (08:42 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 26 May 2010 12:43:52 +0000 (08:43 -0400)
commitc5efa5fc91f1f6d1d47e65f39e7ec6d1157c777d
tree614e6098c92ba9d240ec2b8ea4d9d79ff9334077
parent59844a9bd73e084b0ffefc0e13226098e28c71ad
NFS: Ensure that we mark the inode as dirty if we exit early from commit

If we exit from nfs_commit_inode() without ensuring that the COMMIT rpc
call has been completed, we must re-mark the inode as dirty. Otherwise,
future calls to sync_inode() with the WB_SYNC_ALL flag set will fail to
ensure that the data is on the disk.

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