From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx102.postini.com [74.125.245.102]) by kanga.kvack.org (Postfix) with SMTP id 6F1126B00E9 for ; Thu, 1 Mar 2012 04:17:37 -0500 (EST) Received: from m2.gw.fujitsu.co.jp (unknown [10.0.50.72]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 38D1E3EE0AE for ; Thu, 1 Mar 2012 18:17:35 +0900 (JST) Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 200E345DD78 for ; Thu, 1 Mar 2012 18:17:35 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 0959B45DD74 for ; Thu, 1 Mar 2012 18:17:35 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id F1B731DB803C for ; Thu, 1 Mar 2012 18:17:34 +0900 (JST) Received: from ml14.s.css.fujitsu.com (ml14.s.css.fujitsu.com [10.240.81.134]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id AA63F1DB802C for ; Thu, 1 Mar 2012 18:17:34 +0900 (JST) Date: Thu, 1 Mar 2012 18:16:00 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH next] memcg: remove PCG_CACHE page_cgroup flag fix2 Message-Id: <20120301181600.26087800.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <20120229194304.GF1673@cmpxchg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Hugh Dickins Cc: Andrew Morton , Johannes Weiner , Konstantin Khlebnikov , linux-kernel@vger.kernel.org, linux-mm@kvack.org On Wed, 29 Feb 2012 18:42:57 -0800 (PST) Hugh Dickins wrote: > Add comment to MEM_CGROUP_CHARGE_TYPE_MAPPED case in > __mem_cgroup_uncharge_common(). > > Signed-off-by: Hugh Dickins Acked-by: KAMEZAWA Hiroyuki > --- > This one incremental to patch already in mm-commits. > > mm/memcontrol.c | 5 +++++ > 1 file changed, 5 insertions(+) > > --- mm-commits/mm/memcontrol.c 2012-02-28 20:45:43.488100423 -0800 > +++ linux/mm/memcontrol.c 2012-02-29 18:21:49.144702180 -0800 > @@ -2953,6 +2953,11 @@ __mem_cgroup_uncharge_common(struct page > > switch (ctype) { > case MEM_CGROUP_CHARGE_TYPE_MAPPED: > + /* > + * Generally PageAnon tells if it's the anon statistics to be > + * updated; but sometimes e.g. mem_cgroup_uncharge_page() is > + * used before page reached the stage of being marked PageAnon. > + */ > anon = true; > /* fallthrough */ > case MEM_CGROUP_CHARGE_TYPE_DROP: > -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org