Commit 9556b782 authored by Patrick Mochel's avatar Patrick Mochel

[swsusp] Fix nasty typo.

parent e2676af6
...@@ -578,7 +578,7 @@ static int saveable(struct zone * zone, unsigned long * zone_pfn) ...@@ -578,7 +578,7 @@ static int saveable(struct zone * zone, unsigned long * zone_pfn)
return 0; return 0;
} }
if ((chunk_size = is_head_of_free_region(page))) { if ((chunk_size = is_head_of_free_region(page))) {
zone_pfn += chunk_size - 1; *zone_pfn += chunk_size - 1;
return 0; return 0;
} }
...@@ -601,11 +601,11 @@ static void count_data_pages(void) ...@@ -601,11 +601,11 @@ static void count_data_pages(void)
} }
static void copy_data_pages(struct pbe * pbe) static void copy_data_pages(void)
{ {
struct zone *zone; struct zone *zone;
unsigned long zone_pfn; unsigned long zone_pfn;
struct pbe * pbe = pagedir_nosave;
for_each_zone(zone) { for_each_zone(zone) {
if (!is_highmem(zone)) if (!is_highmem(zone))
...@@ -807,9 +807,9 @@ int suspend_prepare_image(void) ...@@ -807,9 +807,9 @@ int suspend_prepare_image(void)
printk(", "); printk(", ");
#endif #endif
printk("counting pages to copy" );
drain_local_pages(); drain_local_pages();
count_data_pages(); count_data_pages();
printk("swsusp: Need to copy %u pages\n",nr_copy_pages);
nr_needed_pages = nr_copy_pages + PAGES_FOR_IO; nr_needed_pages = nr_copy_pages + PAGES_FOR_IO;
swsusp_alloc(); swsusp_alloc();
...@@ -818,7 +818,7 @@ int suspend_prepare_image(void) ...@@ -818,7 +818,7 @@ int suspend_prepare_image(void)
* Kill them. * Kill them.
*/ */
drain_local_pages(); drain_local_pages();
copy_data_pages(pagedir_nosave); copy_data_pages();
/* /*
* End of critical section. From now on, we can write to memory, * End of critical section. From now on, we can write to memory,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment