aboutsummaryrefslogtreecommitdiffstats
path: root/mm/rmap.c
diff options
context:
space:
mode:
authorHugh Dickins <hugh@veritas.com>2005-10-29 21:16:41 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-30 00:40:42 -0400
commitb8072f099b7829a6ff3eba618e1d079a81f753f8 (patch)
tree80bf801b68ecf5f29a61f0f4fd5976b4daa91c6a /mm/rmap.c
parentf412ac08c9861b4791af0145934c22f1458686da (diff)
[PATCH] mm: update comments to pte lock
Updated several references to page_table_lock in common code comments. Signed-off-by: Hugh Dickins <hugh@veritas.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm/rmap.c')
-rw-r--r--mm/rmap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/rmap.c b/mm/rmap.c
index a7427bbf57e4..914d04b98bee 100644
--- a/mm/rmap.c
+++ b/mm/rmap.c
@@ -32,7 +32,7 @@
32 * page->flags PG_locked (lock_page) 32 * page->flags PG_locked (lock_page)
33 * mapping->i_mmap_lock 33 * mapping->i_mmap_lock
34 * anon_vma->lock 34 * anon_vma->lock
35 * mm->page_table_lock 35 * mm->page_table_lock or pte_lock
36 * zone->lru_lock (in mark_page_accessed) 36 * zone->lru_lock (in mark_page_accessed)
37 * swap_lock (in swap_duplicate, swap_info_get) 37 * swap_lock (in swap_duplicate, swap_info_get)
38 * mmlist_lock (in mmput, drain_mmlist and others) 38 * mmlist_lock (in mmput, drain_mmlist and others)
@@ -244,7 +244,7 @@ unsigned long page_address_in_vma(struct page *page, struct vm_area_struct *vma)
244/* 244/*
245 * Check that @page is mapped at @address into @mm. 245 * Check that @page is mapped at @address into @mm.
246 * 246 *
247 * On success returns with mapped pte and locked mm->page_table_lock. 247 * On success returns with pte mapped and locked.
248 */ 248 */
249pte_t *page_check_address(struct page *page, struct mm_struct *mm, 249pte_t *page_check_address(struct page *page, struct mm_struct *mm,
250 unsigned long address, spinlock_t **ptlp) 250 unsigned long address, spinlock_t **ptlp)
@@ -445,7 +445,7 @@ int page_referenced(struct page *page, int is_locked, int ignore_token)
445 * @vma: the vm area in which the mapping is added 445 * @vma: the vm area in which the mapping is added
446 * @address: the user virtual address mapped 446 * @address: the user virtual address mapped
447 * 447 *
448 * The caller needs to hold the mm->page_table_lock. 448 * The caller needs to hold the pte lock.
449 */ 449 */
450void page_add_anon_rmap(struct page *page, 450void page_add_anon_rmap(struct page *page,
451 struct vm_area_struct *vma, unsigned long address) 451 struct vm_area_struct *vma, unsigned long address)
@@ -468,7 +468,7 @@ void page_add_anon_rmap(struct page *page,
468 * page_add_file_rmap - add pte mapping to a file page 468 * page_add_file_rmap - add pte mapping to a file page
469 * @page: the page to add the mapping to 469 * @page: the page to add the mapping to
470 * 470 *
471 * The caller needs to hold the mm->page_table_lock. 471 * The caller needs to hold the pte lock.
472 */ 472 */
473void page_add_file_rmap(struct page *page) 473void page_add_file_rmap(struct page *page)
474{ 474{
@@ -483,7 +483,7 @@ void page_add_file_rmap(struct page *page)
483 * page_remove_rmap - take down pte mapping from a page 483 * page_remove_rmap - take down pte mapping from a page
484 * @page: page to remove mapping from 484 * @page: page to remove mapping from
485 * 485 *
486 * Caller needs to hold the mm->page_table_lock. 486 * The caller needs to hold the pte lock.
487 */ 487 */
488void page_remove_rmap(struct page *page) 488void page_remove_rmap(struct page *page)
489{ 489{