mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
vmscan: pgmoved should be cleared after updating recent_rotated
pgmoved should be cleared after updating recent_rotated. Signed-off-by: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> Cc: Rik van Riel <riel@redhat.com> Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com> Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
84814d642a
commit
1d885526f2
1 changed files with 1 additions and 1 deletions
|
@ -1262,7 +1262,6 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
|
|||
* Move the pages to the [file or anon] inactive list.
|
||||
*/
|
||||
pagevec_init(&pvec, 1);
|
||||
pgmoved = 0;
|
||||
lru = LRU_BASE + file * LRU_FILE;
|
||||
|
||||
spin_lock_irq(&zone->lru_lock);
|
||||
|
@ -1274,6 +1273,7 @@ static void shrink_active_list(unsigned long nr_pages, struct zone *zone,
|
|||
*/
|
||||
reclaim_stat->recent_rotated[!!file] += pgmoved;
|
||||
|
||||
pgmoved = 0;
|
||||
while (!list_empty(&l_inactive)) {
|
||||
page = lru_to_page(&l_inactive);
|
||||
prefetchw_prev_lru_page(page, &l_inactive, flags);
|
||||
|
|
Loading…
Reference in a new issue