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
f1821d88
Commit
f1821d88
authored
Nov 23, 2007
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import 2.3.8pre2
parent
ef01a983
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
mm/filemap.c
mm/filemap.c
+3
-4
No files found.
mm/filemap.c
View file @
f1821d88
...
...
@@ -214,7 +214,7 @@ extern atomic_t too_many_dirty_buffers;
int
shrink_mmap
(
int
priority
,
int
gfp_mask
)
{
static
unsigned
long
clock
=
0
;
unsigned
long
limit
=
num_physpages
;
unsigned
long
limit
=
num_physpages
<<
1
;
struct
page
*
page
;
int
count
,
users
;
...
...
@@ -245,6 +245,8 @@ int shrink_mmap(int priority, int gfp_mask)
if
((
gfp_mask
&
__GFP_DMA
)
&&
!
PageDMA
(
page
))
continue
;
count
--
;
/*
* Some common cases that we just short-circuit without
* getting the locks - we need to re-check this once we
...
...
@@ -290,7 +292,6 @@ int shrink_mmap(int priority, int gfp_mask)
/* Is it a buffer page? */
if
(
page
->
buffers
)
{
spin_unlock
(
&
pagecache_lock
);
count
--
;
if
(
try_to_free_buffers
(
page
))
goto
made_progress
;
spin_lock
(
&
pagecache_lock
);
...
...
@@ -300,8 +301,6 @@ int shrink_mmap(int priority, int gfp_mask)
if
(
page_count
(
page
)
!=
2
)
goto
spin_unlock_continue
;
count
--
;
/*
* Is it a page swap page? If so, we want to
* drop it if it is no longer used, even if it
...
...
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