Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758140Ab1D1JCr (ORCPT ); Thu, 28 Apr 2011 05:02:47 -0400 Received: from zene.cmpxchg.org ([85.214.230.12]:42510 "EHLO zene.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757301Ab1D1JCp (ORCPT ); Thu, 28 Apr 2011 05:02:45 -0400 Date: Thu, 28 Apr 2011 11:02:38 +0200 From: Johannes Weiner To: Minchan Kim Cc: KAMEZAWA Hiroyuki , Andrew Morton , linux-mm , LKML , Christoph Lameter , Johannes Weiner , KOSAKI Motohiro , Mel Gorman , Rik van Riel , Andrea Arcangeli Subject: Re: [RFC 5/8] compaction: remove active list counting Message-ID: <20110428090238.GK12437@cmpxchg.org> References: <2b79bbf9ddceb73624f49bbe9477126147d875fd.1303833417.git.minchan.kim@gmail.com> <20110427171505.5d7bf485.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1304 Lines: 29 On Thu, Apr 28, 2011 at 08:42:28AM +0900, Minchan Kim wrote: > On Wed, Apr 27, 2011 at 5:15 PM, KAMEZAWA Hiroyuki > wrote: > > On Wed, 27 Apr 2011 01:25:22 +0900 > > Minchan Kim wrote: > > > >> acct_isolated of compaction uses page_lru_base_type which returns only > >> base type of LRU list so it never returns LRU_ACTIVE_ANON or LRU_ACTIVE_FILE. > >> So it's pointless to add lru[LRU_ACTIVE_[ANON|FILE]] to get sum. > >> > >> Cc: KOSAKI Motohiro > >> Cc: Mel Gorman > >> Cc: Rik van Riel > >> Cc: Andrea Arcangeli > >> Signed-off-by: Minchan Kim > > > > I think some comments are necessary to explain why INACTIVE only. > > As alternative, I can change page_lru_base_type with page_lru. > It's not hot path so I will do. We immediately use those numbers to account NR_ISOLATED_ANON/NR_ISOLATED_FILE - i.e. 'lru base types', so I think using page_lru_base_type() makes perfect sense. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/