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
8ea360d4
Commit
8ea360d4
authored
May 22, 2004
by
Andrew Morton
Committed by
Linus Torvalds
May 22, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] vmscan: revert may_enter_fs changes
Fix up the "may we call writepage" logic for the swapcache changes.
parent
e74193ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
mm/vmscan.c
mm/vmscan.c
+5
-8
No files found.
mm/vmscan.c
View file @
8ea360d4
...
...
@@ -247,7 +247,6 @@ static int
shrink_list
(
struct
list_head
*
page_list
,
unsigned
int
gfp_mask
,
int
*
nr_scanned
,
int
do_writepage
)
{
struct
address_space
*
mapping
;
LIST_HEAD
(
ret_pages
);
struct
pagevec
freed_pvec
;
int
pgactivate
=
0
;
...
...
@@ -257,6 +256,7 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
pagevec_init
(
&
freed_pvec
,
1
);
while
(
!
list_empty
(
page_list
))
{
struct
address_space
*
mapping
;
struct
page
*
page
;
int
may_enter_fs
;
int
referenced
;
...
...
@@ -284,9 +284,6 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
goto
activate_locked
;
}
mapping
=
page_mapping
(
page
);
may_enter_fs
=
(
gfp_mask
&
__GFP_FS
);
#ifdef CONFIG_SWAP
/*
* Anonymous process memory has backing store?
...
...
@@ -300,12 +297,12 @@ shrink_list(struct list_head *page_list, unsigned int gfp_mask,
goto
activate_locked
;
page_map_lock
(
page
);
}
if
(
PageSwapCache
(
page
))
{
mapping
=
&
swapper_space
;
may_enter_fs
=
(
gfp_mask
&
__GFP_IO
);
}
#endif
/* CONFIG_SWAP */
mapping
=
page_mapping
(
page
);
may_enter_fs
=
(
gfp_mask
&
__GFP_FS
)
||
(
PageSwapCache
(
page
)
&&
(
gfp_mask
&
__GFP_IO
));
/*
* The page is mapped into the page tables of one or more
* processes. Try to unmap it here.
...
...
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