Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932537Ab0DPVTK (ORCPT ); Fri, 16 Apr 2010 17:19:10 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:39683 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757887Ab0DPVTI (ORCPT ); Fri, 16 Apr 2010 17:19:08 -0400 Date: Fri, 16 Apr 2010 14:18:41 -0700 From: Andrew Morton To: KOSAKI Motohiro Cc: Wu Fengguang , Andreas Mohr , Jens Axboe , Minchan Kim , Linux Memory Management List , "linux-kernel@vger.kernel.org" , Rik van Riel , Lee Schermerhorn Subject: Re: [PATCH] vmscan: page_check_references() check low order lumpy reclaim properly Message-Id: <20100416141841.300d2361.akpm@linux-foundation.org> In-Reply-To: <20100416115437.27AD.A69D9226@jp.fujitsu.com> References: <20100415135031.D186.A69D9226@jp.fujitsu.com> <20100415051911.GA17110@localhost> <20100416115437.27AD.A69D9226@jp.fujitsu.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1114 Lines: 36 On Fri, 16 Apr 2010 12:16:18 +0900 (JST) KOSAKI Motohiro wrote: > If vmscan is under lumpy reclaim mode, it have to ignore referenced bit > for making contenious free pages. but current page_check_references() > doesn't. > > Fixes it. > > Signed-off-by: KOSAKI Motohiro > --- > mm/vmscan.c | 32 +++++++++++++++++--------------- > 1 files changed, 17 insertions(+), 15 deletions(-) > > diff --git a/mm/vmscan.c b/mm/vmscan.c > index 3ff3311..13d9546 100644 > --- a/mm/vmscan.c > +++ b/mm/vmscan.c > @@ -77,6 +77,8 @@ struct scan_control { > > int order; > > + int lumpy_reclaim; > + Needs a comment explaining its role, please. Something like "direct this reclaim run to perform lumpy reclaim"? A clearer name might be "lumpy_relcaim_mode"? Making it a `bool' would clarify things too. -- 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/