diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index e75865d58ba7..89d2a2ab3fe6 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -32,7 +32,6 @@ | |||
32 | #include <linux/slab.h> | 32 | #include <linux/slab.h> |
33 | #include <linux/ratelimit.h> | 33 | #include <linux/ratelimit.h> |
34 | #include <linux/oom.h> | 34 | #include <linux/oom.h> |
35 | #include <linux/notifier.h> | ||
36 | #include <linux/topology.h> | 35 | #include <linux/topology.h> |
37 | #include <linux/sysctl.h> | 36 | #include <linux/sysctl.h> |
38 | #include <linux/cpu.h> | 37 | #include <linux/cpu.h> |
@@ -7709,6 +7708,10 @@ bool has_unmovable_pages(struct zone *zone, struct page *page, int count, | |||
7709 | * handle each tail page individually in migration. | 7708 | * handle each tail page individually in migration. |
7710 | */ | 7709 | */ |
7711 | if (PageHuge(page)) { | 7710 | if (PageHuge(page)) { |
7711 | |||
7712 | if (!hugepage_migration_supported(page_hstate(page))) | ||
7713 | goto unmovable; | ||
7714 | |||
7712 | iter = round_up(iter + 1, 1<<compound_order(page)) - 1; | 7715 | iter = round_up(iter + 1, 1<<compound_order(page)) - 1; |
7713 | continue; | 7716 | continue; |
7714 | } | 7717 | } |