From: Pavel Machek Date: Sat, 25 Jun 2005 21:55:14 +0000 (-0700) Subject: [PATCH] swsusp: fix nr_copy_pages X-Git-Tag: v2.6.13-rc1~68^2~189 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c61978b30322c83a94d7e4857fa5b9996b7d7931;p=pandora-kernel.git [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 Signed-off-by: Pavel Machek Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed