]> err.no Git - linux-2.6/commitdiff
NFS: Ensure the inode is marked as dirty if we break out of nfs_wb_all()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 5 Dec 2006 05:35:42 +0000 (00:35 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 6 Dec 2006 15:46:40 +0000 (10:46 -0500)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/write.c

index bd4dff9dbd694b55a3e432483f16ccf73a3528f7..a4c9df67a3aea27b0596593b4ff96cf8a0bd490d 100644 (file)
@@ -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;
 }