diff options
author | Kirill A. Shutemov | 2016-03-17 22:20:07 +0100 |
---|---|---|
committer | Linus Torvalds | 2016-03-17 23:09:34 +0100 |
commit | e388466de4a2a1a50c43bfaeacc0c8254d9e7cb2 (patch) | |
tree | decd9831aa60379c8937fd54bade4fd171247ade /include/linux/rmap.h | |
parent | rmap: extend try_to_unmap() to be usable by split_huge_page() (diff) | |
download | kernel-qcow2-linux-e388466de4a2a1a50c43bfaeacc0c8254d9e7cb2.tar.gz kernel-qcow2-linux-e388466de4a2a1a50c43bfaeacc0c8254d9e7cb2.tar.xz kernel-qcow2-linux-e388466de4a2a1a50c43bfaeacc0c8254d9e7cb2.zip |
mm: make remove_migration_ptes() beyond mm/migration.c
Make remove_migration_ptes() available to be used in split_huge_page().
New parameter 'locked' added: as with try_to_umap() we need a way to
indicate that caller holds rmap lock.
We also shouldn't try to mlock() pte-mapped huge pages: pte-mapeed THP
pages are never mlocked.
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r-- | include/linux/rmap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 3d975e2252d4..49eb4f8ebac9 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -243,6 +243,8 @@ int page_mkclean(struct page *); */ int try_to_munlock(struct page *); +void remove_migration_ptes(struct page *old, struct page *new, bool locked); + /* * Called by memory-failure.c to kill processes. */ |