From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx202.postini.com [74.125.245.202]) by kanga.kvack.org (Postfix) with SMTP id ACFAC6B002C for ; Wed, 29 Feb 2012 21:43:31 -0500 (EST) Received: by pbbro12 with SMTP id ro12so351358pbb.14 for ; Wed, 29 Feb 2012 18:43:31 -0800 (PST) Date: Wed, 29 Feb 2012 18:42:57 -0800 (PST) From: Hugh Dickins Subject: [PATCH next] memcg: remove PCG_CACHE page_cgroup flag fix2 In-Reply-To: Message-ID: References: <20120229194304.GF1673@cmpxchg.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Johannes Weiner , KAMEZAWA Hiroyuki , Konstantin Khlebnikov , linux-kernel@vger.kernel.org, linux-mm@kvack.org Add comment to MEM_CGROUP_CHARGE_TYPE_MAPPED case in __mem_cgroup_uncharge_common(). Signed-off-by: Hugh Dickins --- 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