Re: [PATCH 04/09] memcg: make zone_reclaim_stat

Rik van Riel
2008-11-30T16:08:32Z

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.