[PATCH] swsusp: rework image freeing
commit351619baf9878731b4272fa10dda0f84f5582241
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 30 Oct 2005 22:59:55 +0000 (30 14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:14 +0000 (30 17:37 -0800)
tree62bf45ba8368dddde3adb501a37c428ead5feff7
parentc32b6b8e524d2c337767d312814484d9289550cf
[PATCH] swsusp: rework image freeing

The following patch makes swsusp use PG_nosave and PG_nosave_free flags to
mark pages that should be freed after the state of the system has been
restored from the image (or in case of an error during suspend).

This allows us to avoid storing metadata in swap twice and to reduce the
amount of memory needed by swsusp.   Additionally, it allows us to simplify
the code by removing a couple of functions that are no longer necessary.

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