[<prev] [next>] [day] [month] [year] [list]
Message-Id: <E1LVFj1-00032y-7X@cmpxchg.org>
Date: Fri, 06 Feb 2009 02:41:47 +0100
From: hannes@...xchg.org
To: unlisted-recipients:; (no To-header on input)
>From hannes@...xchg.org Fri Feb 6 02:28:54 2009
Message-Id: <20090206012854.817934336@...xchg.org>
User-Agent: quilt/0.47-1
Date: Fri, 06 Feb 2009 02:26:07 +0100
From: Johannes Weiner <hannes@...xchg.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: "Rafael J. Wysocki" <rjw@...k.pl>,
Rik van Riel <riel@...hat.com>,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [PATCH 2/3] swsusp: dont fiddle with swappiness
References: <20090206012605.378214179@...xchg.org>
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 <hannes@...xchg.org>
---
mm/vmscan.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -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(unsigned
int 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;
--
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