Subsystems (3)
[email protected]
maintainerQuoted 1 line
From [email protected] Fri Feb 6 02:28:54 2009
Message-Id: <[email protected]>
User-Agent: quilt/0.47-1
Date: Fri, 06 Feb 2009 02:26:07 +0100
From: Johannes Weiner <[email protected]>
To: Andrew Morton <[email protected]>
Cc: "Rafael J. Wysocki" <[email protected]>,
Rik van Riel <[email protected]>,
[email protected],
[email protected]
Subject: [PATCH 2/3] swsusp: dont fiddle with swappiness
References: <[email protected]>
Content-Disposition: inline; filename=swsusp-dont-fiddle-with-swappiness.patch
sc.swappiness is not used in the swsusp memory shrinking path, do not set it.
Signed-off-by Johannes Weiner <[email protected]>
--- mm/vmscan.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
mm/vmscan.c +1 -4
@@ -2111,7 +2111,6 @@ unsigned long shrink_all_memory(unsigned .may_swap = 0, .swap_cluster_max = nr_pages, .may_writepage = 1, - .swappiness = vm_swappiness, .isolate_pages = isolate_pages_global, };
@@ -2145,10 +2144,8 @@ unsigned long shrink_all_memory(unsignedint prio;/* Force reclaiming mapped pages in the passes #3 and #4 */ -if (pass >2 ) { +if (pass >2 ) sc.may_swap =1 ; - sc.swappiness =100 ; - }for (prio =DEF_PRIORITY ; prio >=0 ; prio--) {unsigned long nr_to_scan = nr_pages - ret;