This patchset rewrites freeze_page() and unfreeze_page() using try_to_unmap() and remove_migration_ptes(). Result is much simplier, but somewhat slower. See the last patch for details. I did quick sanity check. More testing is required. Any comments? Kirill A. Shutemov (4): rmap: introduce rmap_walk_locked() rmap: extend try_to_unmap() to be usable by split_huge_page() mm: make remove_migration_ptes() beyond mm/migration.c thp: rewrite freeze_page()/unfreeze_page() with generic rmap walkers include/linux/huge_mm.h | 7 ++ include/linux/rmap.h | 6 ++ mm/huge_memory.c | 219 ++++++------------------------------------------ mm/migrate.c | 13 +-- mm/rmap.c | 49 ++++++++--- 5 files changed, 83 insertions(+), 211 deletions(-) -- 2.7.0 -- 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>