writeback: kupdate writeback shall not stop when more io is possible
commit7fbdea32328312c65870c397a0a436c3226c8631
authorWu Fengguang <fengguang.wu@intel.com>
Wed, 23 Sep 2009 12:33:41 +0000 (23 20:33 +0800)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 25 Sep 2009 16:08:25 +0000 (25 18:08 +0200)
treea92cbf127bca8925afd7c2b22b372d02b32e48f3
parentd3ddec7635b6fb37cb49e3553bdeea59642be653
writeback: kupdate writeback shall not stop when more io is possible

Fix the kupdate case, which disregards wbc.more_io and stop writeback
prematurely even when there are more inodes to be synced.

wbc.more_io should always be respected.

Also remove the pages_skipped check. It will set when some page(s) of some
inode(s) cannot be written for now. Such inodes will be delayed for a while.
This variable has nothing to do with whether there are other writeable inodes.

CC: Jan Kara <jack@suse.cz>
CC: Dave Chinner <david@fromorbit.com>
CC: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/fs-writeback.c