NFS: Ensure the inode is marked as dirty if we break out of nfs_wb_all()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index bd4dff9..a4c9df6 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1469,6 +1469,7 @@
if (ret >= 0)
return 0;
out:
+ __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
return ret;
}
@@ -1493,6 +1494,7 @@
if (ret >= 0)
return 0;
out:
+ __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
return ret;
}
@@ -1519,6 +1521,7 @@
if (ret >= 0)
return 0;
out:
+ __mark_inode_dirty(inode, I_DIRTY_PAGES);
return ret;
}