Re: [PATCH 3/7] memcg: nid and zid can be calculated from zone

From: KOSAKI Motohiro
Date: Wed Jul 21 2010 - 09:34:09 EST


> > +static inline int zone_nid(struct zone *zone)
> > +{
> > + return zone->zone_pgdat->node_id;
> > +}
> > +
>
> hmm, adding a helper and not converting the existing users of
> zone->zone_pgdat may be a little confusing particularly as both types of
> usage would exist in the same file e.g. in mem_cgroup_zone_nr_pages.

I see. here is incrementa patch.

Thanks