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
Kirill Smelkov
linux
Commits
3a1e4697
Commit
3a1e4697
authored
May 14, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 14, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] blk_run_page(): fixup for swap_unplug_io_fn()
parent
e059d5da
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
include/linux/swap.h
include/linux/swap.h
+1
-1
mm/filemap.c
mm/filemap.c
+1
-1
mm/swapfile.c
mm/swapfile.c
+1
-1
No files found.
include/linux/swap.h
View file @
3a1e4697
...
...
@@ -181,7 +181,7 @@ extern int vm_swappiness;
extern
int
shmem_unuse
(
swp_entry_t
entry
,
struct
page
*
page
);
#endif
/* CONFIG_MMU */
extern
void
swap_unplug_io_fn
(
struct
backing_dev_info
*
);
extern
void
swap_unplug_io_fn
(
struct
backing_dev_info
*
,
struct
page
*
);
#ifdef CONFIG_SWAP
/* linux/mm/page_io.c */
...
...
mm/filemap.c
View file @
3a1e4697
...
...
@@ -127,7 +127,7 @@ static inline int sync_page(struct page *page)
if
(
mapping
->
a_ops
&&
mapping
->
a_ops
->
sync_page
)
return
mapping
->
a_ops
->
sync_page
(
page
);
}
else
if
(
PageSwapCache
(
page
))
{
swap_unplug_io_fn
(
NULL
);
swap_unplug_io_fn
(
NULL
,
page
);
}
return
0
;
}
...
...
mm/swapfile.c
View file @
3a1e4697
...
...
@@ -88,7 +88,7 @@ static void remove_swap_bdev(struct block_device *bdev)
BUG
();
}
void
swap_unplug_io_fn
(
struct
backing_dev_info
*
unused_bdi
)
void
swap_unplug_io_fn
(
struct
backing_dev_info
*
unused_bdi
,
struct
page
*
page
)
{
int
i
;
...
...
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