NFS: Ensure that we mark the inode as dirty if we exit early from commit

commit c5efa5fc91 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>
This commit is contained in:
Trond Myklebust 2010-05-26 08:42:11 -04:00 • committed by Greg Kroah-Hartman
commit 53dc58fdce