From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 483AD6B019D for ; Thu, 14 May 2009 07:25:36 -0400 (EDT) Received: from m1.gw.fujitsu.co.jp ([10.0.50.71]) by fgwmail5.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id n4EBPv8c017499 for (envelope-from kosaki.motohiro@jp.fujitsu.com); Thu, 14 May 2009 20:25:58 +0900 Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id D228745DD75 for ; Thu, 14 May 2009 20:25:57 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id B376B45DD72 for ; Thu, 14 May 2009 20:25:57 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id C251E1DB8017 for ; Thu, 14 May 2009 20:25:57 +0900 (JST) Received: from m105.s.css.fujitsu.com (m105.s.css.fujitsu.com [10.249.87.105]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 71CF91DB8012 for ; Thu, 14 May 2009 20:25:57 +0900 (JST) From: KOSAKI Motohiro Subject: Re: [PATCH] mmtom: Prevent shrinking of active anon lru list in case of no swap space V2 In-Reply-To: <20090514201150.8536f86e.minchan.kim@barrios-desktop> References: <20090514201150.8536f86e.minchan.kim@barrios-desktop> Message-Id: <20090514202538.9B81.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Thu, 14 May 2009 20:25:56 +0900 (JST) Sender: owner-linux-mm@kvack.org To: Minchan Kim Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , LKML , linux-mm , Johannes Weiner , Rik van Riel List-ID: > > Changelog since V2 > o Add new function - can_reclaim_anon : it tests anon_list can be reclaim > > Changelog since V1 > o Use nr_swap_pages <= 0 in shrink_active_list to prevent scanning of active anon list. > > Now shrink_active_list is called several places. > But if we don't have a swap space, we can't reclaim anon pages. > So, we don't need deactivating anon pages in anon lru list. > > Signed-off-by: Minchan Kim > Cc: KOSAKI Motohiro > Cc: Johannes Weiner > Cc: Rik van Riel looks good to me. thanks :) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org