Re: [PATCH v3 0/2] sparse_init rewrite

From: Pavel Tatashin
Date: Mon Jul 02 2018 - 13:47:10 EST


On Mon, Jul 2, 2018 at 12:20 PM Dave Hansen <dave.hansen@xxxxxxxxx> wrote:
>
> On 07/01/2018 07:04 PM, Pavel Tatashin wrote:
> > include/linux/mm.h | 9 +-
> > mm/sparse-vmemmap.c | 44 ++++---
> > mm/sparse.c | 279 +++++++++++++++-----------------------------
> > 3 files changed, 125 insertions(+), 207 deletions(-)
>
> FWIW, I'm not a fan of rewrites, but this is an awful lot of code to remove.
>
> I assume from all the back-and-forth, you have another version
> forthcoming. I'll take a close look through that one.

The removed code is a benefit, but once you review it, you will see
that it was necessary to re-write in order to get rid of the temporary
buffers. Please review the current version. The only change that is
going to be in the next version is added "nid" to pr_err() in
sparse_init_nid() for more detailed error.

Thank you,
Pavel