mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
mm: memory_hotplug: memory hotremove supports thp migration
This patch enables thp migration for memory hotremove. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Naoya Horiguchi <[email protected]> Signed-off-by: Zi Yan <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Anshuman Khandual <[email protected]> Cc: Dave Hansen <[email protected]> Cc: David Nellans <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Minchan Kim <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Andrea Arcangeli <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e8db67eb0d
commit
8135d8926c
2 changed files with 17 additions and 2 deletions
|
|
@ -1380,7 +1380,9 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn)
|
|||
if (isolate_huge_page(page, &source))
|
||||
move_pages -= 1 << compound_order(head);
|
||||
continue;
|
||||
}
|
||||
} else if (thp_migration_supported() && PageTransHuge(page))
|
||||
pfn = page_to_pfn(compound_head(page))
|
||||
+ hpage_nr_pages(page) - 1;
|
||||
|
||||
if (!get_page_unless_zero(page))
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue