[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20090213121412.0A67.KOSAKI.MOTOHIRO@jp.fujitsu.com>
Date: Fri, 13 Feb 2009 12:14:57 +0900 (JST)
From: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
To: MinChan Kim <minchan.kim@...il.com>
Cc: kosaki.motohiro@...fujitsu.com,
Andrew Morton <akpm@...ux-foundation.org>,
Johannes Weiner <hannes@...xchg.org>,
"Rafael J. Wysocki" <rjw@...k.pl>,
Nigel Cunningham <ncunningham-lkml@...a.org.au>,
Rik van Riel <riel@...hat.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [patch 2/2 v2] vmscan: clip swap_cluster_max in shrink_all_memory()
> Signed-off-by: Johannes Weiner <hannes@...xchg.org>
> Reviewed-by: MinChan Kim <minchan.kim@...il.com>
> Acked-by: Nigel Cunningham <ncunningham@...a.org.au>
> Acked-by: "Rafael J. Wysocki" <rjw@...k.pl>
> Cc: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
> Cc: Rik van Riel <riel@...hat.com>
>
>
> ---
> mm/vmscan.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/vmscan.c b/mm/vmscan.c
> index 172e394..ed329c4 100644
> --- a/mm/vmscan.c
> +++ b/mm/vmscan.c
> @@ -2114,7 +2114,6 @@ unsigned long shrink_all_memory(unsigned long nr_pages)
> struct scan_control sc = {
> .gfp_mask = GFP_KERNEL,
> .may_unmap = 0,
> - .swap_cluster_max = nr_pages,
> .may_writepage = 1,
> .isolate_pages = isolate_pages_global,
> };
> @@ -2156,6 +2155,7 @@ unsigned long shrink_all_memory(unsigned long nr_pages)
> unsigned long nr_to_scan = nr_pages - sc.nr_reclaimed;
>
> sc.nr_scanned = 0;
> + sc.swap_cluster_max = nr_to_scan;
> shrink_all_zones(nr_to_scan, prio, pass, &sc);
> if (sc.nr_reclaimed >= nr_pages)
> goto out;
good catch.
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists