]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] swsusp: rework image freeing
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 30 Oct 2005 22:59:55 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:14 +0000 (17:37 -0800)
commitc74339ea310150d04ebc21e4e4463aabecfbd3ea
tree62bf45ba8368dddde3adb501a37c428ead5feff7
parent8f940604791cc910c04a074ec37c9a384c25ba2c
[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