diff options
author | Nick Piggin <npiggin@suse.de> | 2006-03-22 08:08:00 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-22 15:53:57 (GMT) |
commit | 4c84cacfa424264f7ad5287298d3ea4a3e935278 (patch) | |
tree | 8cefe97dfd0cdfbdebe5636ccc68b14ab3ae1207 /mm/vmscan.c | |
parent | 8d438f96d2b8eade6cbcd8adfc22dae6f5cbd6c0 (diff) | |
download | linux-fsl-qoriq-4c84cacfa424264f7ad5287298d3ea4a3e935278.tar.xz |
[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/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index 40fb378..8e477b1a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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)) { |