Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753261AbYGDT0G (ORCPT ); Fri, 4 Jul 2008 15:26:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751567AbYGDTZx (ORCPT ); Fri, 4 Jul 2008 15:25:53 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:37846 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750982AbYGDTZx (ORCPT ); Fri, 4 Jul 2008 15:25:53 -0400 Date: Fri, 4 Jul 2008 12:24:59 -0700 From: Andrew Morton To: Rik van Riel Cc: KAMEZAWA Hiroyuki , linux-kernel@vger.kernel.org, linux-mm@kvack.org, "kosaki.motohiro@jp.fujitsu.com" Subject: Re: memcg: lru scan fix (Was: 2.6.26-rc8-mm1 Message-Id: <20080704122459.c309ae1c.akpm@linux-foundation.org> In-Reply-To: <20080704151656.7745bfab@bree.surriel.com> References: <20080703020236.adaa51fa.akpm@linux-foundation.org> <20080704180226.46436432.kamezawa.hiroyu@jp.fujitsu.com> <20080704151656.7745bfab@bree.surriel.com> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-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: 1112 Lines: 29 On Fri, 4 Jul 2008 15:16:56 -0400 Rik van Riel wrote: > On Fri, 4 Jul 2008 18:02:26 +0900 > KAMEZAWA Hiroyuki wrote: > > > Index: test-2.6.26-rc8-mm1/mm/vmscan.c > > =================================================================== > > --- test-2.6.26-rc8-mm1.orig/mm/vmscan.c > > +++ test-2.6.26-rc8-mm1/mm/vmscan.c > > @@ -1501,6 +1501,8 @@ static unsigned long shrink_zone(int pri > > */ > > if (scan_global_lru(sc) && inactive_anon_is_low(zone)) > > shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0); > > + else if (!scan_global_lru(sc)) > > + shrink_active_list(SWAP_CLUSTER_MAX, zone, sc, priority, 0); > > Makes sense. > > Acked-by: Rik van Riel > Thanks. Poor old me needs to work out which patch this patch fixes. It's always appreciated if others tell me :) -- 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/