diff options
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/memory.c b/mm/memory.c index 3922ffcf3dff..8f471edcb985 100644 --- a/mm/memory.c +++ b/mm/memory.c | |||
@@ -1861,7 +1861,7 @@ static int do_wp_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
1861 | } | 1861 | } |
1862 | page_cache_release(old_page); | 1862 | page_cache_release(old_page); |
1863 | } | 1863 | } |
1864 | reuse = can_share_swap_page(old_page); | 1864 | reuse = reuse_swap_page(old_page); |
1865 | unlock_page(old_page); | 1865 | unlock_page(old_page); |
1866 | } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == | 1866 | } else if (unlikely((vma->vm_flags & (VM_WRITE|VM_SHARED)) == |
1867 | (VM_WRITE|VM_SHARED))) { | 1867 | (VM_WRITE|VM_SHARED))) { |
@@ -2392,7 +2392,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma, | |||
2392 | 2392 | ||
2393 | inc_mm_counter(mm, anon_rss); | 2393 | inc_mm_counter(mm, anon_rss); |
2394 | pte = mk_pte(page, vma->vm_page_prot); | 2394 | pte = mk_pte(page, vma->vm_page_prot); |
2395 | if (write_access && can_share_swap_page(page)) { | 2395 | if (write_access && reuse_swap_page(page)) { |
2396 | pte = maybe_mkwrite(pte_mkdirty(pte), vma); | 2396 | pte = maybe_mkwrite(pte_mkdirty(pte), vma); |
2397 | write_access = 0; | 2397 | write_access = 0; |
2398 | } | 2398 | } |