aboutsummaryrefslogtreecommitdiffstats
path: root/mm/migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/migrate.c')
-rw-r--r--mm/migrate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index 6e284bcca8bb..f98067e5d353 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -197,7 +197,7 @@ static void remove_migration_ptes(struct page *old, struct page *new)
197 * get to the page and wait until migration is finished. 197 * get to the page and wait until migration is finished.
198 * When we return from this function the fault will be retried. 198 * When we return from this function the fault will be retried.
199 */ 199 */
200static void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep, 200void __migration_entry_wait(struct mm_struct *mm, pte_t *ptep,
201 spinlock_t *ptl) 201 spinlock_t *ptl)
202{ 202{
203 pte_t pte; 203 pte_t pte;
@@ -1236,7 +1236,8 @@ static int do_move_page_to_node_array(struct mm_struct *mm,
1236 goto put_and_set; 1236 goto put_and_set;
1237 1237
1238 if (PageHuge(page)) { 1238 if (PageHuge(page)) {
1239 isolate_huge_page(page, &pagelist); 1239 if (PageHead(page))
1240 isolate_huge_page(page, &pagelist);
1240 goto put_and_set; 1241 goto put_and_set;
1241 } 1242 }
1242 1243