Re: [PATCH v3 1/3] mm/rmap: factor out migration PTE construction

From: Zi Yan

Date: Tue Dec 01 2026 - 21:44:52 EST


On Thu Nov 26, 2026 at 4:53 AM EST, Shivank Garg wrote:
> try_to_migrate_one() constructs the migration PTE that replaces a
> present PTE or non-present swap PTE.
>
> Factor it into make_migration_pte() which can be shared when the
> hugetlb migration path is separated.
>
> No functional change intended.
>
> Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
> ---
> mm/rmap.c | 65 +++++++++++++++++++++++++++++++++++++--------------------------
> 1 file changed, 38 insertions(+), 27 deletions(-)
>

LGTM.

Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>

--
Best Regards,
Yan, Zi