NFS: Ensure that we mark the inode as dirty if we exit early from commit
commit53dc58fdce4053334b2f47e692d4769f92f41255
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 26 May 2010 12:42:11 +0000 (26 08:42 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:56 +0000 (5 11:22 -0700)
tree44624cc1e417f84f518de3c6f537f8dbf99534ee
parent99d690620ac4810b175f207a09044004bc2b4d79
NFS: Ensure that we mark the inode as dirty if we exit early from commit

commit c5efa5fc91f1f6d1d47e65f39e7ec6d1157c777d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/write.c