aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index a84bdfe582c0..a33e779d1bd8 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -274,7 +274,7 @@ pte_t *page_check_address(struct page *page, struct mm_struct *mm,
274 return NULL; 274 return NULL;
275 } 275 }
276 276
277 ptl = &mm->page_table_lock; 277 ptl = pte_lockptr(mm, pmd);
278 spin_lock(ptl); 278 spin_lock(ptl);
279 if (pte_present(*pte) && page_to_pfn(page) == pte_pfn(*pte)) { 279 if (pte_present(*pte) && page_to_pfn(page) == pte_pfn(*pte)) {
280 *ptlp = ptl; 280 *ptlp = ptl;
@@ -550,7 +550,7 @@ static int try_to_unmap_one(struct page *page, struct vm_area_struct *vma)
550 update_hiwater_rss(mm); 550 update_hiwater_rss(mm);
551 551
552 if (PageAnon(page)) { 552 if (PageAnon(page)) {
553 swp_entry_t entry = { .val = page->private }; 553 swp_entry_t entry = { .val = page_private(page) };
554 /* 554 /*
555 * Store the swap location in the pte. 555 * Store the swap location in the pte.
556 * See handle_pte_fault() ... 556 * See handle_pte_fault() ...