mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8d438f96d2
commit
4c84cacfa4
3 changed files with 5 additions and 6 deletions
|
|
@ -374,8 +374,8 @@ void __pagevec_lru_add_active(struct pagevec *pvec)
|
|||
}
|
||||
BUG_ON(PageLRU(page));
|
||||
SetPageLRU(page);
|
||||
if (TestSetPageActive(page))
|
||||
BUG();
|
||||
BUG_ON(PageActive(page));
|
||||
SetPageActive(page);
|
||||
add_page_to_active_list(zone, page);
|
||||
}
|
||||
if (zone)
|
||||
|
|
|
|||
Loading…
Reference in a new issue