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

2019-08-06 Thread Dan Williams
Hi Jane, looks good. Checkpatch prompts me to point out a couple more fixups: This patch is titled: "mm/memory-failure.c clean up..." ...to match the second patch it should be: "mm/memory-failure: clean up..." On Tue, Aug 6, 2019 at 10:26 AM Jane Chu wrote: > > add_to_kill() expects t

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

2019-08-06 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 +--