Re: [PATCH v3 1/2] mm/memory-failure.c clean up around tk pre-allocation

From: Naoya Horiguchi
Date: Thu Aug 01 2019 - 05:07:25 EST


On Thu, Jul 25, 2019 at 04:01:40PM -0600, Jane Chu wrote:
> add_to_kill() expects the first 'tk' to be pre-allocated, it makes
> subsequent allocations on need basis, this makes the code a bit
> difficult to read. Move all the allocation internal to add_to_kill()
> and drop the **tk argument.
>
> Signed-off-by: Jane Chu <jane.chu@xxxxxxxxxx>

Acked-by: Naoya Horiguchi <n-horiguchi@xxxxxxxxxxxxx>

# somehow I sent 2 acks to 2/2, sorry about the noise.