Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
dc7bd03b
Commit
dc7bd03b
authored
Aug 01, 2004
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[swsusp] Kill unneeded write_header().
- Just inline and remove bad comment.
parent
4111c913
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
kernel/power/swsusp.c
kernel/power/swsusp.c
+5
-20
No files found.
kernel/power/swsusp.c
View file @
dc7bd03b
...
...
@@ -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
);
printk
(
"S"
);
if
(
!
error
)
error
=
write_page
((
unsigned
long
)
&
swsusp_info
,
&
entry
);
if
(
!
error
)
{
printk
(
"S"
);
error
=
mark_swapfiles
(
entry
);
printk
(
"|
\n
"
);
printk
(
"|
\n
"
);
}
return
error
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment