On 07/30/2018 03:37 PM, [email protected] wrote:
> From: Oscar Salvador <[email protected]>
> 
> is_dev_zone() is using zone_id() to check if the zone is ZONE_DEVICE.
> zone_id() looks pretty much the same as zone_idx(), and while the use of
> zone_idx() is quite spread in the kernel, zone_id() is only being
> used by is_dev_zone().
> 
> This patch removes zone_id() and makes is_dev_zone() use zone_idx()
> to check the zone, so we do not have two things with the same
> functionality around.
> 
> Signed-off-by: Oscar Salvador <[email protected]>

Agreed.

Acked-by: Vlastimil Babka <[email protected]>

Reply via email to