Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e07aa05b authored by Nigel Cunningham's avatar Nigel Cunningham Committed by Linus Torvalds
Browse files

[PATCH] Fix swapped parameters in mm/vmscan.c



The version of mm/vmscan.c in Linus' current tree has swapped parameters in
the shrink_all_zones declaration and call, used by the various
suspend-to-disk implementations.  This doesn't seem to have any great
adverse effect, but it's clearly wrong.

Signed-off-by: default avatarNigel Cunningham <nigel@suspend2.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3b2b96ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1369,8 +1369,8 @@ void wakeup_kswapd(struct zone *zone, int order)
 *
 * For pass > 3 we also try to shrink the LRU lists that contain a few pages
 */
static unsigned long shrink_all_zones(unsigned long nr_pages, int pass,
				      int prio, struct scan_control *sc)
static unsigned long shrink_all_zones(unsigned long nr_pages, int prio,
				      int pass, struct scan_control *sc)
{
	struct zone *zone;
	unsigned long nr_to_scan, ret = 0;