[PATCH] swsusp: rework memory freeing on resume
commit2c1b4a5ca48831595979a850f40ced8e7da026f8
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 30 Oct 2005 22:59:58 +0000 (30 14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:14 +0000 (30 17:37 -0800)
tree06fe8a400df8c5166c7f47ca2c30a584473f1170
parenta0f496517f3e28d651d0cbbcf2d4fb701ed6957e
[PATCH] swsusp: rework memory freeing on resume

The following patch makes swsusp use the PG_nosave and PG_nosave_free flags to
mark pages that should be freed in case of an error during resume.

This allows us to simplify the code and to use swsusp_free() in all of the
swsusp's resume error paths, which makes them actually work.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/suspend.c
include/linux/suspend.h
kernel/power/disk.c
kernel/power/power.h
kernel/power/snapshot.c
kernel/power/swsusp.c