aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/rmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 3a39b518a653..ba58ca36fc90 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1014,7 +1014,7 @@ void do_page_add_anon_rmap(struct page *page,
1014 return; 1014 return;
1015 1015
1016 VM_BUG_ON(!PageLocked(page)); 1016 VM_BUG_ON(!PageLocked(page));
1017 VM_BUG_ON(address < vma->vm_start || address >= vma->vm_end); 1017 /* address might be in next vma when migration races vma_adjust */
1018 if (first) 1018 if (first)
1019 __page_set_anon_rmap(page, vma, address, exclusive); 1019 __page_set_anon_rmap(page, vma, address, exclusive);
1020 else 1020 else
@@ -1709,7 +1709,7 @@ void hugepage_add_anon_rmap(struct page *page,
1709 1709
1710 BUG_ON(!PageLocked(page)); 1710 BUG_ON(!PageLocked(page));
1711 BUG_ON(!anon_vma); 1711 BUG_ON(!anon_vma);
1712 BUG_ON(address < vma->vm_start || address >= vma->vm_end); 1712 /* address might be in next vma when migration races vma_adjust */
1713 first = atomic_inc_and_test(&page->_mapcount); 1713 first = atomic_inc_and_test(&page->_mapcount);
1714 if (first) 1714 if (first)
1715 __hugepage_set_anon_rmap(page, vma, address, 0); 1715 __hugepage_set_anon_rmap(page, vma, address, 0);