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
b1efdc30
Commit
b1efdc30
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] rmap.c comment/style fixups
From: Christoph Hellwig <hch@lst.de>
parent
4a58335f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
21 deletions
+15
-21
mm/rmap.c
mm/rmap.c
+15
-21
No files found.
mm/rmap.c
View file @
b1efdc30
...
...
@@ -148,15 +148,11 @@ static inline void clear_page_anon(struct page *page)
free_anonmm
(
anonmm
);
}
/**
** VM stuff below this comment
**/
/*
* At what user virtual address is pgoff expected in file-backed vma?
*/
static
inline
unsigned
long
vma_address
(
struct
vm_area_struct
*
vma
,
pgoff_t
pgoff
)
static
inline
unsigned
long
vma_address
(
struct
vm_area_struct
*
vma
,
pgoff_t
pgoff
)
{
unsigned
long
address
;
...
...
@@ -165,11 +161,10 @@ unsigned long vma_address(struct vm_area_struct *vma, pgoff_t pgoff)
return
address
;
}
/**
** Subfunctions of page_referenced: page_referenced_one called
** repeatedly from either page_referenced_anon or page_referenced_file.
**/
/*
* Subfunctions of page_referenced: page_referenced_one called
* repeatedly from either page_referenced_anon or page_referenced_file.
*/
static
int
page_referenced_one
(
struct
page
*
page
,
struct
mm_struct
*
mm
,
unsigned
long
address
,
unsigned
int
*
mapcount
,
int
*
failed
)
...
...
@@ -265,9 +260,9 @@ static inline int page_referenced_anon(struct page *page)
/*
* The warning below may appear if page_referenced catches the
* page in between page_add_
rmap and its replacement demanded
*
by mremap_moved_anon_page: so remove the warning once we'r
e
* convinced that anonmm rmap really is finding its pages.
* page in between page_add_
{anon,file}_rmap and its replacement
*
demanded by mremap_moved_anon_page: so remove the warning onc
e
*
we're
convinced that anonmm rmap really is finding its pages.
*/
WARN_ON
(
!
failed
);
out:
...
...
@@ -300,7 +295,7 @@ static inline int page_referenced_anon(struct page *page)
*
* This function is only called from page_referenced for object-based pages.
*
* The s
emaphore
address_space->i_mmap_lock is tried. If it can't be gotten,
* The s
pinlock
address_space->i_mmap_lock is tried. If it can't be gotten,
* assume a reference count of 0, so try_to_unmap will then have a go.
*/
static
inline
int
page_referenced_file
(
struct
page
*
page
)
...
...
@@ -478,11 +473,10 @@ int fastcall mremap_move_anon_rmap(struct page *page, unsigned long address)
return
move
;
}
/**
** Subfunctions of try_to_unmap: try_to_unmap_one called
** repeatedly from either try_to_unmap_anon or try_to_unmap_file.
**/
/*
* Subfunctions of try_to_unmap: try_to_unmap_one called
* repeatedly from either try_to_unmap_anon or try_to_unmap_file.
*/
static
int
try_to_unmap_one
(
struct
page
*
page
,
struct
mm_struct
*
mm
,
unsigned
long
address
,
unsigned
int
*
mapcount
,
struct
vm_area_struct
*
vma
)
...
...
@@ -721,7 +715,7 @@ static inline int try_to_unmap_anon(struct page *page)
*
* This function is only called from try_to_unmap for object-based pages.
*
* The s
emaphore
address_space->i_mmap_lock is tried. If it can't be gotten,
* The s
pinlock
address_space->i_mmap_lock is tried. If it can't be gotten,
* return a temporary error.
*/
static
inline
int
try_to_unmap_file
(
struct
page
*
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