aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <khlebnikov@openvz.org>2012-05-29 18:07:00 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-29 19:22:26 -0400
commit27ac81d85e5cfcc755dd5fa3f04dc883ab5d821b (patch)
treee3b8ad8f4b67a3f1dc7a2a809a009a5544cade6b /mm
parent95d918fc009072c2f88ce2e8b5db2e5abfad7c3e (diff)
mm/vmscan: push lruvec pointer into putback_inactive_pages()
As zone_reclaim_stat is now located in the lruvec, we can reach it directly. Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org> Cc: Mel Gorman <mel@csn.ul.ie> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/vmscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c
index 53fa8671eabd..76d786eb84a8 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -1155,11 +1155,11 @@ static int too_many_isolated(struct zone *zone, int file,
1155} 1155}
1156 1156
1157static noinline_for_stack void 1157static noinline_for_stack void
1158putback_inactive_pages(struct mem_cgroup_zone *mz, 1158putback_inactive_pages(struct lruvec *lruvec,
1159 struct list_head *page_list) 1159 struct list_head *page_list)
1160{ 1160{
1161 struct zone_reclaim_stat *reclaim_stat = get_reclaim_stat(mz); 1161 struct zone_reclaim_stat *reclaim_stat = &lruvec->reclaim_stat;
1162 struct zone *zone = mz->zone; 1162 struct zone *zone = lruvec_zone(lruvec);
1163 LIST_HEAD(pages_to_free); 1163 LIST_HEAD(pages_to_free);
1164 1164
1165 /* 1165 /*
@@ -1278,7 +1278,7 @@ shrink_inactive_list(unsigned long nr_to_scan, struct mem_cgroup_zone *mz,
1278 nr_reclaimed); 1278 nr_reclaimed);
1279 } 1279 }
1280 1280
1281 putback_inactive_pages(mz, &page_list); 1281 putback_inactive_pages(lruvec, &page_list);
1282 1282
1283 __mod_zone_page_state(zone, NR_ISOLATED_ANON + file, -nr_taken); 1283 __mod_zone_page_state(zone, NR_ISOLATED_ANON + file, -nr_taken);
1284 1284