From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Fengguang Subject: Re: [PATCH 4/6] VM: Don't call bdi_stat(BDI_UNSTABLE) on non-nfs backing-devices Date: Thu, 7 Jan 2010 09:56:00 +0800 Message-ID: <20100107015600.GB9475@localhost> References: <20100106205110.22547.85345.stgit@localhost.localdomain> <20100106205110.22547.88263.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Peter Zijlstra , Jan Kara , Steve Rago , "linux-nfs@vger.kernel.org" , "jens.axboe" , Peter Staubach , Arjan van de Ven , Ingo Molnar , "linux-fsdevel@vger.kernel.org" To: Trond Myklebust Return-path: Received: from mga01.intel.com ([192.55.52.88]:56424 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756276Ab0AGB4E (ORCPT ); Wed, 6 Jan 2010 20:56:04 -0500 Content-Disposition: inline In-Reply-To: <20100106205110.22547.88263.stgit@localhost.localdomain> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jan 07, 2010 at 04:51:10AM +0800, Trond Myklebust wrote: > avail_dirty += bdi_stat(bdi, BDI_DIRTY) + > - bdi_stat(bdi, BDI_UNSTABLE) + > bdi_stat(bdi, BDI_WRITEBACK); > + if (bdi_cap_account_unstable(bdi)) > + avail_dirty += bdi_stat(bdi, BDI_UNSTABLE); It seems that not changing the bdi_stat()s makes more readable code, otherwise looks OK to me. Reviewed-by: Wu Fengguang