aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-05 00:35:42 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-12-06 10:46:40 -0500
commite507d9ebbb2d5db5948a6fb3c33f015d60708d19 (patch)
tree193bffc35de3d7592e54f2124c49989e78543910
parentfa8d8c5b77a2dc467b5365a5651710161b84f16d (diff)
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>
-rw-r--r--fs/nfs/write.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index bd4dff9dbd69..a4c9df67a3ae 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -1469,6 +1469,7 @@ int nfs_wb_all(struct inode *inode)
1469 if (ret >= 0) 1469 if (ret >= 0)
1470 return 0; 1470 return 0;
1471out: 1471out:
1472 __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
1472 return ret; 1473 return ret;
1473} 1474}
1474 1475
@@ -1493,6 +1494,7 @@ int nfs_sync_mapping_range(struct address_space *mapping, loff_t range_start, lo
1493 if (ret >= 0) 1494 if (ret >= 0)
1494 return 0; 1495 return 0;
1495out: 1496out:
1497 __mark_inode_dirty(mapping->host, I_DIRTY_PAGES);
1496 return ret; 1498 return ret;
1497} 1499}
1498 1500
@@ -1519,6 +1521,7 @@ int nfs_wb_page_priority(struct inode *inode, struct page *page, int how)
1519 if (ret >= 0) 1521 if (ret >= 0)
1520 return 0; 1522 return 0;
1521out: 1523out:
1524 __mark_inode_dirty(inode, I_DIRTY_PAGES);
1522 return ret; 1525 return ret;
1523} 1526}
1524 1527