aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/rmap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index 265d529905a7..e032d96fd64e 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -1103,13 +1103,10 @@ static int try_to_unmap_file(struct page *page, enum ttu_flags flags)
1103 if (ret == SWAP_MLOCK) { 1103 if (ret == SWAP_MLOCK) {
1104 mlocked = try_to_mlock_page(page, vma); 1104 mlocked = try_to_mlock_page(page, vma);
1105 if (mlocked) 1105 if (mlocked)
1106 break; /* stop if actually mlocked page */ 1106 goto out; /* stop if actually mlocked page */
1107 } 1107 }
1108 } 1108 }
1109 1109
1110 if (mlocked)
1111 goto out;
1112
1113 if (list_empty(&mapping->i_mmap_nonlinear)) 1110 if (list_empty(&mapping->i_mmap_nonlinear))
1114 goto out; 1111 goto out;
1115 1112