Re: [v3 1/4] mm: hugetlb_vmemmap: Use nid of the head page to reallocate it

From: Muchun Song
Date: Mon Aug 28 2023 - 03:16:59 EST




> On Aug 25, 2023, at 19:18, Usama Arif <usama.arif@xxxxxxxxxxxxx> wrote:
>
> If tail page prep and initialization is skipped, then the "start"
> page will not contain the correct nid. Use the nid from first
> vmemap page.
>
> Signed-off-by: Usama Arif <usama.arif@xxxxxxxxxxxxx>

Make sense even if without your optimization. Because the nid is
used for allocation for "reuse" page, it really should be extracted
from "reuse" page instead of "start" page.

Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>