]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: fix nr_copy_pages
authorPavel Machek <pavel@ucw.cz>
Sat, 25 Jun 2005 21:55:14 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:33 +0000 (16:24 -0700)
commite1bcc7abd15c20dc0f5e8444603f28448b0b012d
tree34fe94d8b55738a957472de21a098a588f171d6a
parentec2be5f1ed3b81179a2d842dfc9da244d06bb6da
[PATCH] swsusp: fix nr_copy_pages

The following patch moves the recalculation of nr_copy_pages so that the right
number is used in the calculation of the size of memory and swap needed.

It prevents swsusp from attempting to suspend if there is not enough memory
and/or swap (which is unlikely anyway).

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/swsusp.c