aboutsummaryrefslogtreecommitdiffstats
path: root/mm/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/swap.c')
-rw-r--r--mm/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swap.c b/mm/swap.c
index 985324ee9368..cf88226cf96d 100644
--- a/mm/swap.c
+++ b/mm/swap.c
@@ -374,8 +374,8 @@ void __pagevec_lru_add_active(struct pagevec *pvec)
374 } 374 }
375 BUG_ON(PageLRU(page)); 375 BUG_ON(PageLRU(page));
376 SetPageLRU(page); 376 SetPageLRU(page);
377 if (TestSetPageActive(page)) 377 BUG_ON(PageActive(page));
378 BUG(); 378 SetPageActive(page);
379 add_page_to_active_list(zone, page); 379 add_page_to_active_list(zone, page);
380 } 380 }
381 if (zone) 381 if (zone)