提交 2afd1c92 编写于 作者: H Hugh Dickins 提交者: Linus Torvalds

mm: make page_lock_anon_vma() static

page_lock_anon_vma() and page_unlock_anon_vma() were made available to
show_page_path() in vmscan.c; but now that has been removed, make them
static in rmap.c again, they're better kept private if possible.
Signed-off-by: NHugh Dickins <hugh@veritas.com>
Reviewed-by: NKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b5934c53
...@@ -63,9 +63,6 @@ void anon_vma_unlink(struct vm_area_struct *); ...@@ -63,9 +63,6 @@ void anon_vma_unlink(struct vm_area_struct *);
void anon_vma_link(struct vm_area_struct *); void anon_vma_link(struct vm_area_struct *);
void __anon_vma_link(struct vm_area_struct *); void __anon_vma_link(struct vm_area_struct *);
extern struct anon_vma *page_lock_anon_vma(struct page *page);
extern void page_unlock_anon_vma(struct anon_vma *anon_vma);
/* /*
* rmap interfaces called when adding or removing pte of page * rmap interfaces called when adding or removing pte of page
*/ */
......
...@@ -193,7 +193,7 @@ void __init anon_vma_init(void) ...@@ -193,7 +193,7 @@ void __init anon_vma_init(void)
* Getting a lock on a stable anon_vma from a page off the LRU is * Getting a lock on a stable anon_vma from a page off the LRU is
* tricky: page_lock_anon_vma rely on RCU to guard against the races. * tricky: page_lock_anon_vma rely on RCU to guard against the races.
*/ */
struct anon_vma *page_lock_anon_vma(struct page *page) static struct anon_vma *page_lock_anon_vma(struct page *page)
{ {
struct anon_vma *anon_vma; struct anon_vma *anon_vma;
unsigned long anon_mapping; unsigned long anon_mapping;
...@@ -213,7 +213,7 @@ struct anon_vma *page_lock_anon_vma(struct page *page) ...@@ -213,7 +213,7 @@ struct anon_vma *page_lock_anon_vma(struct page *page)
return NULL; return NULL;
} }
void page_unlock_anon_vma(struct anon_vma *anon_vma) static void page_unlock_anon_vma(struct anon_vma *anon_vma)
{ {
spin_unlock(&anon_vma->lock); spin_unlock(&anon_vma->lock);
rcu_read_unlock(); rcu_read_unlock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册