From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753401Ab0KXKon (ORCPT ); Wed, 24 Nov 2010 05:44:43 -0500 Received: from mga03.intel.com ([143.182.124.21]:3647 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753337Ab0KXKom (ORCPT ); Wed, 24 Nov 2010 05:44:42 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,247,1288594800"; d="scan'208";a="352678840" Date: Wed, 24 Nov 2010 18:44:37 +0800 From: Wu Fengguang To: Peter Zijlstra Cc: Andrew Morton , Jan Kara , Christoph Hellwig , Dave Chinner , "Theodore Ts'o" , Chris Mason , Mel Gorman , Rik van Riel , KOSAKI Motohiro , linux-mm , "linux-fsdevel@vger.kernel.org" , LKML Subject: Re: [PATCH 05/13] writeback: account per-bdi accumulated written pages Message-ID: <20101124104437.GB6096@localhost> References: <20101117042720.033773013@intel.com> <20101117042849.884566722@intel.com> <1290594376.2072.442.camel@laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1290594376.2072.442.camel@laptop> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 24, 2010 at 06:26:16PM +0800, Peter Zijlstra wrote: > On Wed, 2010-11-17 at 12:27 +0800, Wu Fengguang wrote: > > @@ -1292,6 +1292,7 @@ int test_clear_page_writeback(struct pag > > PAGECACHE_TAG_WRITEBACK); > > if (bdi_cap_account_writeback(bdi)) { > > __dec_bdi_stat(bdi, BDI_WRITEBACK); > > + __inc_bdi_stat(bdi, BDI_WRITTEN); > > __bdi_writeout_inc(bdi); > > } > > } > > Shouldn't that live in __bdi_writeout_inc()? It looks like this forgets > about fuse (fuse_writepage_finish() -> bdi_writeout_inc() -> > __bdi_writeout_inc()). Good catch! Will fix it in next post. Thanks, Fengguang