Some misc migrate code cleanup and improvement.
v2: * Fixed the comments from Zi Yan * Collected Reviewed-by Yang Shi (5): mm: truncate_complete_page is not existed anymore mm: migrate: simplify the logic for handling permanent failure mm: migrate: skip shared exec THP for NUMA balancing mm: migrate: clean up migrate_prep{_local} mm: migrate: return -ENOSYS if THP migration is unsupported include/linux/migrate.h | 4 +-- mm/mempolicy.c | 8 ++--- mm/migrate.c | 158 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------- mm/vmscan.c | 2 +- 4 files changed, 108 insertions(+), 64 deletions(-)