]> err.no Git - linux-2.6/commitdiff
[PATCH] swsusp: drain high mem pages
authorShaohua Li <shaohua.li@intel.com>
Thu, 23 Mar 2006 11:00:06 +0000 (03:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:08 +0000 (07:38 -0800)
Highmem could be in pcp list as well.

Signed-off-by: Shaohua Li<shaohua.li@intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/snapshot.c

index 1b46c2da5a50566ff7a1997b9c83581d5f9c9554..c5863d02c89efc08ef430752bb062f0aafcb4bc7 100644 (file)
@@ -123,6 +123,7 @@ int save_highmem(void)
        int res = 0;
 
        pr_debug("swsusp: Saving Highmem");
+       drain_local_pages();
        for_each_zone (zone) {
                if (is_highmem(zone))
                        res = save_highmem_zone(zone);