aboutsummaryrefslogtreecommitdiffstats
path: root/mm/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'mm/internal.h')
-rw-r--r--mm/internal.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/mm/internal.h b/mm/internal.h
index 987bb03fbdd8..58ec1bc262c3 100644
--- a/mm/internal.h
+++ b/mm/internal.h
@@ -157,14 +157,9 @@ static inline void mlock_migrate_page(struct page *newpage, struct page *page)
157 */ 157 */
158static inline void free_page_mlock(struct page *page) 158static inline void free_page_mlock(struct page *page)
159{ 159{
160 if (unlikely(TestClearPageMlocked(page))) { 160 __ClearPageMlocked(page);
161 unsigned long flags; 161 __dec_zone_page_state(page, NR_MLOCK);
162 162 __count_vm_event(UNEVICTABLE_MLOCKFREED);
163 local_irq_save(flags);
164 __dec_zone_page_state(page, NR_MLOCK);
165 __count_vm_event(UNEVICTABLE_MLOCKFREED);
166 local_irq_restore(flags);
167 }
168} 163}
169 164
170#else /* CONFIG_HAVE_MLOCKED_PAGE_BIT */ 165#else /* CONFIG_HAVE_MLOCKED_PAGE_BIT */