From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/2] writeback: integrated background writeback work Date: Mon, 1 Nov 2010 11:21:50 -0400 Message-ID: <20101101152149.GA12741@infradead.org> References: <20100913123110.372291929@intel.com> <20100913130149.994322762@intel.com> <20100914124033.GA4874@quack.suse.cz> <20101101121408.GB9006@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Jan Kara , "linux-mm@kvack.org" , Mel Gorman , Rik van Riel , Johannes Weiner , Minchan Kim , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Dave Chinner , Christoph Hellwig , linux-fsdevel@vger.kernel.org To: Wu Fengguang Return-path: Content-Disposition: inline In-Reply-To: <20101101121408.GB9006@localhost> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org > +static void _bdi_wakeup_flusher(struct backing_dev_info *bdi) Remove the leading underscore, please. > void bdi_start_background_writeback(struct backing_dev_info *bdi) > { > - __bdi_start_writeback(bdi, LONG_MAX, true, true); > + /* > + * We just wake up the flusher thread. It will perform background > + * writeback as soon as there is no other work to do. > + */ > + spin_lock_bh(&bdi->wb_lock); > + _bdi_wakeup_flusher(bdi); > + spin_unlock_bh(&bdi->wb_lock); We probably want a trace point here, too. Otherwise the patch looks good to me. Thanks for bringing it up again. -- 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