swsusp: dont fiddle with swappiness

sc.swappiness is not used in the swsusp memory shrinking path, do not
set it.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Len Brown <lenb@kernel.org>
Cc: Greg KH <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Johannes Weiner and committed by Linus Torvalds 3049103d 09664fda

+1 -4
+1 -4
mm/vmscan.c
··· 2112 .may_swap = 0, 2113 .swap_cluster_max = nr_pages, 2114 .may_writepage = 1, 2115 - .swappiness = vm_swappiness, 2116 .isolate_pages = isolate_pages_global, 2117 }; 2118 ··· 2145 int prio; 2146 2147 /* Force reclaiming mapped pages in the passes #3 and #4 */ 2148 - if (pass > 2) { 2149 sc.may_swap = 1; 2150 - sc.swappiness = 100; 2151 - } 2152 2153 for (prio = DEF_PRIORITY; prio >= 0; prio--) { 2154 unsigned long nr_to_scan = nr_pages - ret;
··· 2112 .may_swap = 0, 2113 .swap_cluster_max = nr_pages, 2114 .may_writepage = 1, 2115 .isolate_pages = isolate_pages_global, 2116 }; 2117 ··· 2146 int prio; 2147 2148 /* Force reclaiming mapped pages in the passes #3 and #4 */ 2149 + if (pass > 2) 2150 sc.may_swap = 1; 2151 2152 for (prio = DEF_PRIORITY; prio >= 0; prio--) { 2153 unsigned long nr_to_scan = nr_pages - ret;