This prevents it to stuck with some very old but busy inodes, and to give newer expired inodes a fair chance. CC: Jan Kara <jack@xxxxxxx> Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx> --- fs/fs-writeback.c | 3 +++ 1 file changed, 3 insertions(+) --- linux.orig/fs/fs-writeback.c 2009-10-06 23:39:31.000000000 +0800 +++ linux/fs/fs-writeback.c 2009-10-06 23:39:32.000000000 +0800 @@ -829,6 +829,9 @@ static long wb_writeback(struct bdi_writ args->nr_pages -= nr; wrote += nr; + if (args->for_kupdate && list_empty(&wb->b_io)) + oldest_jif = jiffies - expire_interval; + if (args->for_background && expire_interval && ++fg_rounds && list_empty(&wb->b_io)) { if (fg_rounds < 10) -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html