projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84814d6
)
vmscan: pgmoved should be cleared after updating recent_rotated
author
Daisuke Nishimura
<
[email protected]
>
Fri, 13 Mar 2009 20:52:00 +0000
(13:52 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 14 Mar 2009 18:57:22 +0000
(11:57 -0700)
pgmoved should be cleared after updating recent_rotated.
Signed-off-by: Daisuke Nishimura <
[email protected]
>
Cc: Rik van Riel <
[email protected]
>
Cc: Lee Schermerhorn <
[email protected]
>
Acked-by: KOSAKI Motohiro <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/vmscan.c
patch
|
blob
|
history
diff --git
a/mm/vmscan.c
b/mm/vmscan.c
index e89517141657bb6ecfa4c17cf1aceb8b76be78f6..56ddf41149eb77a55158ced628c02f817b990618 100644
(file)
--- a/
mm/vmscan.c
+++ b/
mm/vmscan.c
@@
-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);