diff options
author | Nick Piggin <npiggin@suse.de> | 2006-03-22 03:08:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 10:53:57 -0500 |
commit | 4c84cacfa424264f7ad5287298d3ea4a3e935278 (patch) | |
tree | 8cefe97dfd0cdfbdebe5636ccc68b14ab3ae1207 /mm/swap.c | |
parent | 8d438f96d2b8eade6cbcd8adfc22dae6f5cbd6c0 (diff) |
[PATCH] mm: PageActive no testset
PG_active is protected by zone->lru_lock, it does not need TestSet/TestClear
operations.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/swap.c')
-rw-r--r-- | mm/swap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |