aboutsummaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/memory.c')
-rw-r--r--mm/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memory.c b/mm/memory.c
index 8f471edcb985..1a83fe5339a9 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2403,7 +2403,7 @@ static int do_swap_page(struct mm_struct *mm, struct vm_area_struct *vma,
2403 2403
2404 swap_free(entry); 2404 swap_free(entry);
2405 if (vm_swap_full() || (vma->vm_flags & VM_LOCKED) || PageMlocked(page)) 2405 if (vm_swap_full() || (vma->vm_flags & VM_LOCKED) || PageMlocked(page))
2406 remove_exclusive_swap_page(page); 2406 try_to_free_swap(page);
2407 unlock_page(page); 2407 unlock_page(page);
2408 2408
2409 if (write_access) { 2409 if (write_access) {