diff options
Diffstat (limited to 'mm/rmap.c')
-rw-r--r-- | mm/rmap.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -1627,16 +1627,9 @@ static bool try_to_unmap_one(struct page *page, struct vm_area_struct *vma, | |||
1627 | address + PAGE_SIZE); | 1627 | address + PAGE_SIZE); |
1628 | } else { | 1628 | } else { |
1629 | /* | 1629 | /* |
1630 | * We should not need to notify here as we reach this | 1630 | * This is a locked file-backed page, thus it cannot |
1631 | * case only from freeze_page() itself only call from | 1631 | * be removed from the page cache and replaced by a new |
1632 | * split_huge_page_to_list() so everything below must | 1632 | * page before mmu_notifier_invalidate_range_end, so no |
1633 | * be true: | ||
1634 | * - page is not anonymous | ||
1635 | * - page is locked | ||
1636 | * | ||
1637 | * So as it is a locked file back page thus it can not | ||
1638 | * be remove from the page cache and replace by a new | ||
1639 | * page before mmu_notifier_invalidate_range_end so no | ||
1640 | * concurrent thread might update its page table to | 1633 | * concurrent thread might update its page table to |
1641 | * point at new page while a device still is using this | 1634 | * point at new page while a device still is using this |
1642 | * page. | 1635 | * page. |