Commit c177c81e authored by Committed by Linus TorvaldsBrowse files
hugetlb: restrict hugepage_migration_support() to x86_64
Currently hugepage migration is available for all archs which support pmd-level hugepage, but testing is done only for x86_64 and there're bugs for other archs. So to avoid breaking such archs, this patch limits the availability strictly to x86_64 until developers of other archs get interested in enabling this feature. Simply disabling hugepage migration on non-x86_64 archs is not enough to fix the reported problem where sys_move_pages() hits the BUG_ON() in follow_page(FOLL_GET), so let's fix this by checking if hugepage migration is supported in vma_migratable(). Signed-off-by: Naoya Horiguchi <firstname.lastname@example.org> Reported-by: Michael Ellerman <email@example.com> Tested-by: Michael Ellerman <firstname.lastname@example.org> Acked-by: Hugh Dickins <email@example.com> Cc: Benjamin Herrenschmidt <firstname.lastname@example.org> Cc: Tony Luck <email@example.com> Cc: Russell King <firstname.lastname@example.org> Cc: Martin Schwidefsky <email@example.com> Cc: James...
Showing with 18 additions and 73 deletions