Commit dc7bd03b authored by Patrick Mochel's avatar Patrick Mochel

[swsusp] Kill unneeded write_header().

- Just inline and remove bad comment.
parent 4111c913
...@@ -336,32 +336,17 @@ static void init_header(void) ...@@ -336,32 +336,17 @@ static void init_header(void)
dump_info(); dump_info();
} }
/**
* write_header - Fill and write the suspend header.
* @entry: Location of the last swap entry used.
*
* Allocate a page, fill header, write header.
*
* @entry is the location of the last pagedir entry written on
* entrance. On exit, it contains the location of the header.
*/
static int write_header(swp_entry_t * entry)
{
return write_page((unsigned long)&swsusp_info,entry);
}
static int close_swap(void) static int close_swap(void)
{ {
swp_entry_t entry; swp_entry_t entry;
int error; int error;
error = write_header(&entry);
printk( "S" ); error = write_page((unsigned long)&swsusp_info,&entry);
if (!error) if (!error) {
printk( "S" );
error = mark_swapfiles(entry); error = mark_swapfiles(entry);
printk( "|\n" ); printk( "|\n" );
}
return error; return error;
} }
......
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