]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] swsusp: Fix mark_free_pages
authorRafael J. Wysocki <rjw@sisk.pl>
Tue, 26 Sep 2006 06:32:49 +0000 (23:32 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:59 +0000 (08:48 -0700)
commitf623f0db8e6aa86a37be86167e4ff478821a9f4f
treefab12e8dc57d14101e9e512ba708b83f74551dd9
parente3920fb42c8ddfe63befb54d95c0e13eabacea9b
[PATCH] swsusp: Fix mark_free_pages

Clean up mm/page_alloc.c#mark_free_pages() and make it avoid clearing
PageNosaveFree for PageNosave pages.  This allows us to get rid of an ugly
hack in kernel/power/snapshot.c#copy_data_pages().

Additionally, the page-copying loop in copy_data_pages() is moved to an
inline function.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/snapshot.c
mm/page_alloc.c