summaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorKirill A. Shutemov2016-03-17 22:20:04 +0100
committerLinus Torvalds2016-03-17 23:09:34 +0100
commit2a52bcbcc688eecead2953143f7ef695b8e44575 (patch)
treeb2e372875693775e97fc4e9373c5a630d2a1dcc0 /mm/migrate.c
parentrmap: introduce rmap_walk_locked() (diff)
downloadkernel-qcow2-linux-2a52bcbcc688eecead2953143f7ef695b8e44575.tar.gz
kernel-qcow2-linux-2a52bcbcc688eecead2953143f7ef695b8e44575.tar.xz
kernel-qcow2-linux-2a52bcbcc688eecead2953143f7ef695b8e44575.zip
rmap: extend try_to_unmap() to be usable by split_huge_page()
Add support for two ttu_flags: - TTU_SPLIT_HUGE_PMD would split PMD if it's there, before trying to unmap page; - TTU_RMAP_LOCKED indicates that caller holds relevant rmap lock; Also, change rwc->done to !page_mapcount() instead of !page_mapped(). try_to_unmap() works on pte level, so we are really interested in the mappedness of this small page rather than of the compound page it's a part of. 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 'mm/migrate.c')
0 files changed, 0 insertions, 0 deletions