On Tue, Nov 2, 2010 at 5:39 AM, Wu Fengguang <fengguang.wu@xxxxxxxxx> wrote: > From: Jan Kara <jack@xxxxxxx> > > Check whether background writeback is needed after finishing each work. > > When bdi flusher thread finishes doing some work check whether any kind > of background writeback needs to be done (either because > dirty_background_ratio is exceeded or because we need to start flushing > old inodes). If so, just do background write back. > > This way, bdi_start_background_writeback() just needs to wake up the > flusher thread. It will do background writeback as soon as there is no > other work. > > This is a preparatory patch for the next patch which stops background > writeback as soon as there is other work to do. > > Signed-off-by: Jan Kara <jack@xxxxxxx> > Signed-off-by: Wu Fengguang <fengguang.wu@xxxxxxxxx> Reviewed-by: Minchan Kim <minchan.kim@xxxxxxxxx> -- Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>