Re: [PATCH] mm: make __paginginit based on CONFIG_MEMORY_HOTPLUG
From: Pavel Tatashin
Date: Tue Jul 31 2018 - 10:44:07 EST
Hi Oscar,
There is a simpler way. I will send it out in a bit. No need for your
first function, only setup_usemap() needs to be changed to __ref.
Pavel
On Tue, Jul 31, 2018 at 10:42 AM Oscar Salvador
<osalvador@xxxxxxxxxxxxxxxxxx> wrote:
>
> On Tue, Jul 31, 2018 at 08:49:11AM -0400, Pavel Tatashin wrote:
> > Hi Oscar,
> >
> > Have you looked into replacing __paginginit via __meminit ? What is
> > the reason to keep both?
> Hi Pavel,
>
> Actually, thinking a bit more about this, it might make sense to remove
> __paginginit altogether and keep only __meminit.
> Looking at the original commit, I think that it was put as a way to abstract it.
>
> After the patchset [1] has been applied, only two functions marked as __paginginit
> remain, so it will be less hassle to replace that with __meminit.
>
> I will send a v2 tomorrow to be applied on top of [1].
>
> [1] https://patchwork.kernel.org/patch/10548861/
>
> Thanks
> --
> Oscar Salvador
> SUSE L3
>