Re: [PATCH v5 3/6] mm: Use zone and order instead of free area in free_list manipulators
From: Dan Williams
Date: Mon Aug 12 2019 - 18:39:25 EST
On Mon, Aug 12, 2019 at 2:33 PM Alexander Duyck
<alexander.duyck@xxxxxxxxx> wrote:
>
> From: Alexander Duyck <alexander.h.duyck@xxxxxxxxxxxxxxx>
>
> In order to enable the use of the zone from the list manipulator functions
> I will need access to the zone pointer. As it turns out most of the
> accessors were always just being directly passed &zone->free_area[order]
> anyway so it would make sense to just fold that into the function itself
> and pass the zone and order as arguments instead of the free area.
>
> In order to be able to reference the zone we need to move the declaration
> of the functions down so that we have the zone defined before we define the
> list manipulation functions.
Independent of the code movement for the zone declaration this looks
like a nice cleanup of the calling convention.
Reviewed-by: Dan Williams <dan.j.williams@xxxxxxxxx>