Commit b1efdc30 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] rmap.c comment/style fixups

From: Christoph Hellwig <hch@lst.de>
parent 4a58335f
...@@ -148,15 +148,11 @@ static inline void clear_page_anon(struct page *page) ...@@ -148,15 +148,11 @@ static inline void clear_page_anon(struct page *page)
free_anonmm(anonmm); free_anonmm(anonmm);
} }
/**
** VM stuff below this comment
**/
/* /*
* At what user virtual address is pgoff expected in file-backed vma? * At what user virtual address is pgoff expected in file-backed vma?
*/ */
static inline static inline unsigned long
unsigned long vma_address(struct vm_area_struct *vma, pgoff_t pgoff) vma_address(struct vm_area_struct *vma, pgoff_t pgoff)
{ {
unsigned long address; unsigned long address;
...@@ -165,11 +161,10 @@ unsigned long vma_address(struct vm_area_struct *vma, pgoff_t pgoff) ...@@ -165,11 +161,10 @@ unsigned long vma_address(struct vm_area_struct *vma, pgoff_t pgoff)
return address; return address;
} }
/** /*
** Subfunctions of page_referenced: page_referenced_one called * Subfunctions of page_referenced: page_referenced_one called
** repeatedly from either page_referenced_anon or page_referenced_file. * repeatedly from either page_referenced_anon or page_referenced_file.
**/ */
static int page_referenced_one(struct page *page, static int page_referenced_one(struct page *page,
struct mm_struct *mm, unsigned long address, struct mm_struct *mm, unsigned long address,
unsigned int *mapcount, int *failed) unsigned int *mapcount, int *failed)
...@@ -265,9 +260,9 @@ static inline int page_referenced_anon(struct page *page) ...@@ -265,9 +260,9 @@ static inline int page_referenced_anon(struct page *page)
/* /*
* The warning below may appear if page_referenced catches the * The warning below may appear if page_referenced catches the
* page in between page_add_rmap and its replacement demanded * page in between page_add_{anon,file}_rmap and its replacement
* by mremap_moved_anon_page: so remove the warning once we're * demanded by mremap_moved_anon_page: so remove the warning once
* convinced that anonmm rmap really is finding its pages. * we're convinced that anonmm rmap really is finding its pages.
*/ */
WARN_ON(!failed); WARN_ON(!failed);
out: out:
...@@ -300,7 +295,7 @@ static inline int page_referenced_anon(struct page *page) ...@@ -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. * This function is only called from page_referenced for object-based pages.
* *
* The semaphore address_space->i_mmap_lock is tried. If it can't be gotten, * The spinlock 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. * assume a reference count of 0, so try_to_unmap will then have a go.
*/ */
static inline int page_referenced_file(struct page *page) 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) ...@@ -478,11 +473,10 @@ int fastcall mremap_move_anon_rmap(struct page *page, unsigned long address)
return move; return move;
} }
/** /*
** Subfunctions of try_to_unmap: try_to_unmap_one called * Subfunctions of try_to_unmap: try_to_unmap_one called
** repeatedly from either try_to_unmap_anon or try_to_unmap_file. * repeatedly from either try_to_unmap_anon or try_to_unmap_file.
**/ */
static int try_to_unmap_one(struct page *page, static int try_to_unmap_one(struct page *page,
struct mm_struct *mm, unsigned long address, struct mm_struct *mm, unsigned long address,
unsigned int *mapcount, struct vm_area_struct *vma) unsigned int *mapcount, struct vm_area_struct *vma)
...@@ -721,7 +715,7 @@ static inline int try_to_unmap_anon(struct page *page) ...@@ -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. * This function is only called from try_to_unmap for object-based pages.
* *
* The semaphore address_space->i_mmap_lock is tried. If it can't be gotten, * The spinlock address_space->i_mmap_lock is tried. If it can't be gotten,
* return a temporary error. * return a temporary error.
*/ */
static inline int try_to_unmap_file(struct page *page) static inline int try_to_unmap_file(struct page *page)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment