aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index e5dfe2ae6b0d..003377e24232 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1475,7 +1475,15 @@ static bool try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
1475 /* 1475 /*
1476 * No need to invalidate here it will synchronize on 1476 * No need to invalidate here it will synchronize on
1477 * against the special swap migration pte. 1477 * against the special swap migration pte.
1478 *
1479 * The assignment to subpage above was computed from a
1480 * swap PTE which results in an invalid pointer.
1481 * Since only PAGE_SIZE pages can currently be
1482 * migrated, just set it to page. This will need to be
1483 * changed when hugepage migrations to device private
1484 * memory are supported.
1478 */ 1485 */
1486 subpage = page;
1479 goto discard; 1487 goto discard;
1480 } 1488 }
1481 1489