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)
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)
{
swp_entry_t entry;
int error;
error = write_header(&entry);
error = write_page((unsigned long)&swsusp_info,&entry);
if (!error) {
printk( "S" );
if (!error)
error = mark_swapfiles(entry);
printk( "|\n" );
}
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