Here is the 5th version of hugepage migration patchset. Changes in this version are as follows: - removed putback_active_hugepages() as a cleanup (1/9) - added code to check movability of a given hugepage (8/9) - set GFP MOVABLE flag depending on the movability of hugepage (9/9). I feel that 8/9 and 9/9 contain some new things, so need reviews on them. TODOs: (likely to be done after this work) - split page table lock for pmd/pud based hugepage (maybe applicable to thp) - improve alloc_migrate_target (especially in node choice) - using page walker in check_range Thanks, Naoya Horiguchi --- GitHub: git://github.com/Naoya-Horiguchi/linux.git extend_hugepage_migration.v5 Test code: git://github.com/Naoya-Horiguchi/test_hugepage_migration_extension.git Naoya Horiguchi (9): migrate: make core migration code aware of hugepage soft-offline: use migrate_pages() instead of migrate_huge_page() migrate: add hugepage migration code to migrate_pages() migrate: add hugepage migration code to move_pages() mbind: add hugepage migration code to mbind() migrate: remove VM_HUGETLB from vma flag check in vma_migratable() memory-hotplug: enable memory hotplug to handle hugepage migrate: check movability of hugepage in unmap_and_move_huge_page() prepare to remove /proc/sys/vm/hugepages_treat_as_movable Documentation/sysctl/vm.txt | 13 +--- arch/arm/mm/hugetlbpage.c | 5 ++ arch/arm64/mm/hugetlbpage.c | 5 ++ arch/ia64/mm/hugetlbpage.c | 5 ++ arch/metag/mm/hugetlbpage.c | 5 ++ arch/mips/mm/hugetlbpage.c | 5 ++ arch/powerpc/mm/hugetlbpage.c | 10 ++++ arch/s390/mm/hugetlbpage.c | 5 ++ arch/sh/mm/hugetlbpage.c | 5 ++ arch/sparc/mm/hugetlbpage.c | 5 ++ arch/tile/mm/hugetlbpage.c | 5 ++ arch/x86/mm/hugetlbpage.c | 8 +++ include/linux/hugetlb.h | 25 ++++++++ include/linux/mempolicy.h | 2 +- include/linux/migrate.h | 5 -- mm/hugetlb.c | 134 +++++++++++++++++++++++++++++++++++++----- mm/memory-failure.c | 15 ++++- mm/memory.c | 17 +++++- mm/memory_hotplug.c | 42 ++++++++++--- mm/mempolicy.c | 46 +++++++++++++-- mm/migrate.c | 61 ++++++++++--------- mm/page_alloc.c | 12 ++++ mm/page_isolation.c | 14 +++++ 23 files changed, 371 insertions(+), 78 deletions(-) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>