[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>
This commit is contained in:
committed by
Linus Torvalds
parent
8d438f96d2
commit
4c84cacfa4
@ -1280,8 +1280,9 @@ refill_inactive_zone(struct zone *zone, struct scan_control *sc)
|
||||
prefetchw_prev_lru_page(page, &l_inactive, flags);
|
||||
BUG_ON(PageLRU(page));
|
||||
SetPageLRU(page);
|
||||
if (!TestClearPageActive(page))
|
||||
BUG();
|
||||
BUG_ON(!PageActive(page));
|
||||
ClearPageActive(page);
|
||||
|
||||
list_move(&page->lru, &zone->inactive_list);
|
||||
pgmoved++;
|
||||
if (!pagevec_add(&pvec, page)) {
|
||||
|
Reference in New Issue
Block a user