From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Axboe Subject: Re: [PATCH 2/6] writeback: stop background writeback when below background threshold Date: Wed, 23 Sep 2009 17:05:10 +0200 Message-ID: <20090923150510.GB23126@kernel.dk> References: <20090923123337.990689487@intel.com> <20090923124027.589303074@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Andrew Morton , Jan Kara , Peter Zijlstra , Theodore Ts'o , Dave Chinner , Chris Mason , Christoph Hellwig , linux-fsdevel@vger.kernel.org, LKML To: Wu Fengguang Return-path: Received: from brick.kernel.dk ([93.163.65.50]:42162 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751379AbZIWPFH (ORCPT ); Wed, 23 Sep 2009 11:05:07 -0400 Content-Disposition: inline In-Reply-To: <20090923124027.589303074@intel.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wed, Sep 23 2009, Wu Fengguang wrote: > Treat bdi_start_writeback(0) as a special request to do background write, > and stop such work when we are below the background dirty threshold. > > Also simplify the (nr_pages <= 0) checks. Since we already pass in > nr_pages=LONG_MAX for WB_SYNC_ALL and background writes, we don't > need to worry about it being decreased to zero. Good cleanup! Do you want me to collect these fixes, or how shall we handle this? -- Jens Axboe