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

2019-08-06 Thread Jane Chu
Hi, Naoya, Thanks a lot! v4 on the way. :) -jane On 8/1/2019 2:06 AM, Naoya Horiguchi wrote: 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

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

2019-08-01 Thread Naoya Horiguchi
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. > >

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

2019-07-25 Thread Jane Chu
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 --- mm/memory-failure.c | 40 +--