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
893e544c
Commit
893e544c
authored
Mar 07, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msync cleanups
parent
f98dc48f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mm/msync.c
mm/msync.c
+3
-3
No files found.
mm/msync.c
View file @
893e544c
...
@@ -19,12 +19,12 @@
...
@@ -19,12 +19,12 @@
* Called with mm->page_table_lock held to protect against other
* Called with mm->page_table_lock held to protect against other
* threads/the swapper from ripping pte's out from under us.
* threads/the swapper from ripping pte's out from under us.
*/
*/
static
in
line
int
filemap_sync_pte
(
pte_t
*
ptep
,
pmd_t
*
pmd
p
,
struct
vm_area_struct
*
vma
,
static
in
t
filemap_sync_pte
(
pte_t
*
pte
p
,
struct
vm_area_struct
*
vma
,
unsigned
long
address
,
unsigned
int
flags
)
unsigned
long
address
,
unsigned
int
flags
)
{
{
pte_t
pte
=
*
ptep
;
pte_t
pte
=
*
ptep
;
if
(
pte_present
(
pte
))
{
if
(
pte_present
(
pte
)
&&
pte_dirty
(
pte
)
)
{
struct
page
*
page
=
pte_page
(
pte
);
struct
page
*
page
=
pte_page
(
pte
);
if
(
VALID_PAGE
(
page
)
&&
!
PageReserved
(
page
)
&&
ptep_test_and_clear_dirty
(
ptep
))
{
if
(
VALID_PAGE
(
page
)
&&
!
PageReserved
(
page
)
&&
ptep_test_and_clear_dirty
(
ptep
))
{
flush_tlb_page
(
vma
,
address
);
flush_tlb_page
(
vma
,
address
);
...
@@ -53,7 +53,7 @@ static inline int filemap_sync_pte_range(pmd_t * pmd,
...
@@ -53,7 +53,7 @@ static inline int filemap_sync_pte_range(pmd_t * pmd,
end
=
(
address
&
PMD_MASK
)
+
PMD_SIZE
;
end
=
(
address
&
PMD_MASK
)
+
PMD_SIZE
;
error
=
0
;
error
=
0
;
do
{
do
{
error
|=
filemap_sync_pte
(
pte
,
pmd
,
vma
,
address
,
flags
);
error
|=
filemap_sync_pte
(
pte
,
vma
,
address
,
flags
);
address
+=
PAGE_SIZE
;
address
+=
PAGE_SIZE
;
pte
++
;
pte
++
;
}
while
(
address
&&
(
address
<
end
));
}
while
(
address
&&
(
address
<
end
));
...
...
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