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 ESMTP id CF07D6B0012 for ; Thu, 19 May 2011 22:19:59 -0400 (EDT) Date: Fri, 20 May 2011 11:11:05 +0900 From: Daisuke Nishimura Subject: Re: [PATCH V3 2/3] memcg: fix a routine for counting pages in node Message-Id: <20110520111105.d6f5ca1b.nishimura@mxp.nes.nec.co.jp> In-Reply-To: <1305826360-2167-2-git-send-email-yinghan@google.com> References: <1305826360-2167-1-git-send-email-yinghan@google.com> <1305826360-2167-2-git-send-email-yinghan@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Ying Han Cc: KOSAKI Motohiro , Minchan Kim , Balbir Singh , Tejun Heo , Pavel Emelyanov , KAMEZAWA Hiroyuki , Andrew Morton , Li Zefan , Mel Gorman , Christoph Lameter , Johannes Weiner , Rik van Riel , Hugh Dickins , Michal Hocko , Dave Hansen , Zhu Yanhai , linux-mm@kvack.org, Daisuke Nishimura Acked-by: Daisuke Nishimura This is a bugfix for memcg-reclaim-memory-from-nodes-in-round-robin-order.patch in mmotm tree, so I think it would be better to note about it. On Thu, 19 May 2011 10:32:39 -0700 Ying Han wrote: > The value for counter base should be initialized. If not, > this returns wrong value. > > Signed-off-by: KAMEZAWA Hiroyuki > --- > mm/memcontrol.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/mm/memcontrol.c b/mm/memcontrol.c > index da183dc..e14677c 100644 > --- a/mm/memcontrol.c > +++ b/mm/memcontrol.c > @@ -679,7 +679,7 @@ static unsigned long > mem_cgroup_get_zonestat_node(struct mem_cgroup *mem, int nid, enum lru_list idx) > { > struct mem_cgroup_per_zone *mz; > - u64 total; > + u64 total = 0; > int zid; > > for (zid = 0; zid < MAX_NR_ZONES; zid++) { > -- > 1.7.3.1 > -- 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