From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with SMTP id AA71F8D0001 for ; Mon, 1 Nov 2010 21:55:27 -0400 (EDT) Received: by iwn38 with SMTP id 38so7042059iwn.14 for ; Mon, 01 Nov 2010 18:55:26 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20101101203947.GB7309@localhost> References: <20100913123110.372291929@intel.com> <20100913130149.994322762@intel.com> <20100914124033.GA4874@quack.suse.cz> <20101101121408.GB9006@localhost> <20101101152149.GA12741@infradead.org> <20101101203947.GB7309@localhost> Date: Tue, 2 Nov 2010 10:55:25 +0900 Message-ID: Subject: Re: [PATCH 1/2 v2] writeback: integrated background writeback work From: Minchan Kim Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org To: Wu Fengguang Cc: Christoph Hellwig , Andrew Morton , Jan Kara , "linux-mm@kvack.org" , Mel Gorman , Rik van Riel , Johannes Weiner , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Dave Chinner , "linux-fsdevel@vger.kernel.org" List-ID: On Tue, Nov 2, 2010 at 5:39 AM, Wu Fengguang wrote: > From: Jan Kara > > 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 > Signed-off-by: Wu Fengguang Reviewed-by: Minchan Kim -- Kind regards, Minchan Kim -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. 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: email@kvack.org