提交 e07aa05b 编写于 作者: N Nigel Cunningham 提交者: Linus Torvalds

[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: NNigel Cunningham <nigel@suspend2.net>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 3b2b96ab
...@@ -1369,8 +1369,8 @@ void wakeup_kswapd(struct zone *zone, int order) ...@@ -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 * 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, static unsigned long shrink_all_zones(unsigned long nr_pages, int prio,
int prio, struct scan_control *sc) int pass, struct scan_control *sc)
{ {
struct zone *zone; struct zone *zone;
unsigned long nr_to_scan, ret = 0; unsigned long nr_to_scan, ret = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册