From: Trond Myklebust Date: Tue, 5 Dec 2006 05:35:42 +0000 (-0500) Subject: NFS: Ensure the inode is marked as dirty if we break out of nfs_wb_all() X-Git-Tag: v2.6.20-rc1~34^2~412^2~36 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e507d9ebbb2d5db5948a6fb3c33f015d60708d19;p=linux-2.6 NFS: Ensure the inode is marked as dirty if we break out of nfs_wb_all() Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/write.c b/fs/nfs/write.c index bd4dff9dbd..a4c9df67a3 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1469,6 +1469,7 @@ int nfs_wb_all(struct inode *inode) if (ret >= 0) return 0; out: + __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); return ret; } @@ -1493,6 +1494,7 @@ int nfs_sync_mapping_range(struct address_space *mapping, loff_t range_start, lo if (ret >= 0) return 0; out: + __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); return ret; } @@ -1519,6 +1521,7 @@ int nfs_wb_page_priority(struct inode *inode, struct page *page, int how) if (ret >= 0) return 0; out: + __mark_inode_dirty(inode, I_DIRTY_PAGES); return ret; }