


---

 25-akpm/fs/fs-writeback.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN fs/fs-writeback.c~sync_inodes_sb-debug fs/fs-writeback.c
--- 25/fs/fs-writeback.c~sync_inodes_sb-debug	Fri May 21 17:03:01 2004
+++ 25-akpm/fs/fs-writeback.c	Fri May 21 17:03:01 2004
@@ -425,10 +425,7 @@ void sync_inodes_sb(struct super_block *
 {
 	struct page_state ps;
 	struct writeback_control wbc = {
-		.bdi		= NULL,
 		.sync_mode	= wait ? WB_SYNC_ALL : WB_SYNC_HOLD,
-		.older_than_this = NULL,
-		.nr_to_write	= 0,
 	};
 
 	get_page_state(&ps);
@@ -439,6 +436,9 @@ void sync_inodes_sb(struct super_block *
 	spin_lock(&inode_lock);
 	sync_sb_inodes(sb, &wbc);
 	spin_unlock(&inode_lock);
+	if (wbc.nr_to_write <= 0)
+		printk(KERN_ERR "%s: not all pages were written!\n",
+				__FUNCTION__);
 }
 
 /*

_
