mm/mremap: start addresses are properly aligned

After previous cleanup, extent is the minimal step for both source and
destination.  This means when extent is HPAGE_PMD_SIZE or PMD_SIZE,
old_addr and new_addr are properly aligned too.

Since these two functions are only invoked in move_page_tables, it is safe
to remove the check now.

Signed-off-by: Wei Yang <>
Signed-off-by: Andrew Morton <>
Tested-by: Dmitry Osipenko <>
Acked-by: Kirill A. Shutemov <>
Cc: Aneesh Kumar K.V <>
Cc: Anshuman Khandual <>
Cc: Matthew Wilcox <>
Cc: Peter Xu <>
Cc: Sean Christopherson <>
Cc: Thomas Hellstrom <>
Cc: Thomas Hellstrom (VMware) <>
Cc: Vlastimil Babka <>
Cc: Yang Shi <>
Signed-off-by: Linus Torvalds <>
2 files changed