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

Rik van Riel
2008-11-30T16:06:43Z

KOSAKI Motohiro wrote:

> +struct zone_reclaim_stat*
> +mem_cgroup_get_reclaim_stat_by_page(struct page *page)
> +{
> + return NULL;
> +}

> + memcg_reclaim_stat = mem_cgroup_get_reclaim_stat_by_page(page);
> + memcg_reclaim_stat->recent_rotated[!!file]++;
> + memcg_reclaim_stat->recent_scanned[!!file]++;

Won't this cause a null pointer dereference when
not using memcg?

--
All rights reversed.