From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 17 Oct 2007 14:16:29 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH] memory cgroup enhancements [3/5] record pc is on active list Message-Id: <20071017141629.f097da53.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <20071016191949.cd50f12f.kamezawa.hiroyu@jp.fujitsu.com> <20071016192613.350d0bb5.kamezawa.hiroyu@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: David Rientjes Cc: "linux-mm@kvack.org" , "containers@lists.osdl.org" , "balbir@linux.vnet.ibm.com" , "yamamoto@valinux.co.jp" List-ID: On Tue, 16 Oct 2007 21:17:24 -0700 (PDT) David Rientjes wrote: > On Tue, 16 Oct 2007, KAMEZAWA Hiroyuki wrote: > > > Remember page_cgroup is on active_list or not in page_cgroup->flags. > > > > Against 2.6.23-mm1. > > > > Signed-off-by: KAMEZAWA Hiroyuki > > Signed-off-by: YAMAMOTO Takashi > > > > mm/memcontrol.c | 12 ++++++++---- > > 1 file changed, 8 insertions(+), 4 deletions(-) > > > > Index: devel-2.6.23-mm1/mm/memcontrol.c > > =================================================================== > > --- devel-2.6.23-mm1.orig/mm/memcontrol.c > > +++ devel-2.6.23-mm1/mm/memcontrol.c > > @@ -85,6 +85,7 @@ struct page_cgroup { > > /* mapped and cached states */ > > int flags; > > #define PCGF_PAGECACHE (0x1) /* charged as page-cache */ > > +#define PCGF_ACTIVE (0x2) /* this is on cgroup's active list */ > > Please move these flag #defines out of the struct definition. > ok -Kame -- 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