From: Hillf Danton Date: Tue, 10 Jan 2012 23:08:36 +0000 (-0800) Subject: mm: vmscan: fix typo in isolating lru pages X-Git-Tag: upstream/snapshot3+hdmi~8381^2~78 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3770490ec82ca63d5fdcebeb95f2f68af2626357;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git mm: vmscan: fix typo in isolating lru pages It is not the tag page but the cursor page that we should process, and it looks a typo. Signed-off-by: Hillf Danton Cc: Michal Hocko Cc: KAMEZAWA Hiroyuki Cc: Andrea Arcangeli Cc: David Rientjes Cc: Hugh Dickins Acked-by: KOSAKI Motohiro Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 8a4e767..26f4a8a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1173,7 +1173,7 @@ static unsigned long isolate_lru_pages(unsigned long nr_to_scan, if (__isolate_lru_page(cursor_page, mode, file) == 0) { list_move(&cursor_page->lru, dst); mem_cgroup_del_lru(cursor_page); - nr_taken += hpage_nr_pages(page); + nr_taken += hpage_nr_pages(cursor_page); nr_lumpy_taken++; if (PageDirty(cursor_page)) nr_lumpy_dirty++;