aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mlock.c')
-rw-r--r--mm/mlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mlock.c b/mm/mlock.c
index bd6f0e466f6c..48691fb08514 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -117,7 +117,7 @@ static void munlock_vma_page(struct page *page)
117 /* 117 /*
118 * did try_to_unlock() succeed or punt? 118 * did try_to_unlock() succeed or punt?
119 */ 119 */
120 if (ret == SWAP_SUCCESS || ret == SWAP_AGAIN) 120 if (ret != SWAP_MLOCK)
121 count_vm_event(UNEVICTABLE_PGMUNLOCKED); 121 count_vm_event(UNEVICTABLE_PGMUNLOCKED);
122 122
123 putback_lru_page(page); 123 putback_lru_page(page);