]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: avoid problems if there are too many pages to save
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 28 Sep 2005 04:45:43 +0000 (21:45 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Sep 2005 14:46:41 +0000 (07:46 -0700)
commitd138ba1bccdd1919cfec10755b9560acc6125af1
tree8f8a059eaed60c6d4f98a62f7dde447d4a76b9e3
parent169bb4a107b706034f0a347be698153817cdb8df
[PATCH] swsusp: avoid problems if there are too many pages to save

The following patch makes swsusp avoid problems during resume if there are
too many pages to save on suspend.  It adds a constant that allows us to
verify if we are going to save too many pages and implements the check
(this is done as early as we can tell that the check will trigger, which is
in swsusp_alloc()).

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