[PATCH 0/4] thp: simplify freeze_page() and unfreeze_page()
From: Kirill A. Shutemov
Date: Wed Feb 03 2016 - 10:14:43 EST
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