Hi, This patch set did some cleanup and improvements for the page migration, please help to review. Thanks a lot. Note: the patch set is against 20210804 linux-next. Baolin Wang (5): mm: migrate: Move the page count validation to the proper place mm: migrate: Introduce a local variable to get the number of pages mm: migrate: Fix the incorrect function name in comments mm: migrate: Change to use bool type for 'page_was_mapped' mm: migrate: Remove redundant goto labels mm/migrate.c | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) -- 1.8.3.1