Re: [PATCH v6 2/5] mm: access zone->node via zone_to_nid() and zone_set_nid()

From: Vlastimil Babka
Date: Fri Aug 03 2018 - 08:20:12 EST


On 08/01/2018 02:23 PM, osalvador@xxxxxxxxxxxxxxxxxx wrote:
> From: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx>
>
> zone->node is configured only when CONFIG_NUMA=y, so it is a good idea to
> have inline functions to access this field in order to avoid ifdef's in
> c files.

Agreed.

> Signed-off-by: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx>
> Signed-off-by: Oscar Salvador <osalvador@xxxxxxx>
> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx>
> Acked-by: Michal Hocko <mhocko@xxxxxxxx>

Acked-by: Vlastimil Babka <vbabka@xxxxxxx>