Patchwork s2disk hang update

login
register
mail settings
Submitter Rafael Wysocki
Date Feb. 24, 2010, 8:52 p.m.
Message ID <201002242152.55408.rjw@sisk.pl>
Download mbox | patch
Permalink /patch/81830/
State New, archived
Headers show

Comments

Patch

Index: linux-2.6/kernel/power/snapshot.c
===================================================================
--- linux-2.6.orig/kernel/power/snapshot.c
+++ linux-2.6/kernel/power/snapshot.c
@@ -1181,7 +1181,7 @@  static void free_unnecessary_pages(void)
 
 	memory_bm_position_reset(&copy_bm);
 
-	while (to_free_normal > 0 && to_free_highmem > 0) {
+	while (to_free_normal > 0 || to_free_highmem > 0) {
 		unsigned long pfn = memory_bm_next_pfn(&copy_bm);
 		struct page *page = pfn_to_page(pfn);