From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4932BA80.3060708@redhat.com> Date: Sun, 30 Nov 2008 11:08:32 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 04/09] memcg: make zone_reclaim_stat References: <20081130193502.8145.KOSAKI.MOTOHIRO@jp.fujitsu.com> <20081130195731.8151.KOSAKI.MOTOHIRO@jp.fujitsu.com> In-Reply-To: <20081130195731.8151.KOSAKI.MOTOHIRO@jp.fujitsu.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: KOSAKI Motohiro Cc: LKML , linux-mm , Andrew Morton , Balbir Singh , KAMEZAWA Hiroyuki List-ID: KOSAKI Motohiro wrote: > @@ -172,6 +173,10 @@ void activate_page(struct page *page) > > reclaim_stat->recent_rotated[!!file]++; > reclaim_stat->recent_scanned[!!file]++; > + > + memcg_reclaim_stat = mem_cgroup_get_reclaim_stat_by_page(page); > + memcg_reclaim_stat->recent_rotated[!!file]++; > + memcg_reclaim_stat->recent_scanned[!!file]++; Also, manipulation of the zone based reclaim_stats happens under the lru lock. What protects the memcg reclaim stat? -- All rights reversed. -- 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