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
f7fd88b4
Commit
f7fd88b4
authored
May 21, 2002
by
Pavel Machek
Committed by
Linus Torvalds
May 21, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] suspend-to-{RAM,disk} fixup
Fix compile problem with suspending diabled
parent
542f96a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
mm/page_io.c
mm/page_io.c
+0
-4
No files found.
mm/page_io.c
View file @
f7fd88b4
...
@@ -86,16 +86,12 @@ static int rw_swap_page_base(int rw, swp_entry_t entry, struct page *page)
...
@@ -86,16 +86,12 @@ static int rw_swap_page_base(int rw, swp_entry_t entry, struct page *page)
* - it's marked as being swap-cache
* - it's marked as being swap-cache
* - it's associated with the swap inode
* - it's associated with the swap inode
*/
*/
extern
long
suspend_device
;
void
rw_swap_page
(
int
rw
,
struct
page
*
page
)
void
rw_swap_page
(
int
rw
,
struct
page
*
page
)
{
{
swp_entry_t
entry
;
swp_entry_t
entry
;
entry
.
val
=
page
->
index
;
entry
.
val
=
page
->
index
;
if
(
suspend_device
)
panic
(
"I refuse to corrupt memory/swap."
);
if
(
!
PageLocked
(
page
))
if
(
!
PageLocked
(
page
))
PAGE_BUG
(
page
);
PAGE_BUG
(
page
);
if
(
!
PageSwapCache
(
page
))
if
(
!
PageSwapCache
(
page
))
...
...
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