aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rmap.h
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2010-08-09 20:18:37 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-09 23:44:54 -0400
commitbb4a340e075b7897ece109686bfa177f8518d2db (patch)
tree3cca938530a2367cfd66fcc8ca11809acb14b42b /include/linux/rmap.h
parent597781f3e51f48ef8e67be772196d9e9673752c4 (diff)
mm: rename anon_vma_lock to vma_lock_anon_vma
Rename anon_vma_lock to vma_lock_anon_vma. This matches the naming style used in page_lock_anon_vma and will come in really handy further down in this patch series. Signed-off-by: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Tested-by: Larry Woodman <lwoodman@redhat.com> Acked-by: Larry Woodman <lwoodman@redhat.com> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/rmap.h')
-rw-r--r--include/linux/rmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/rmap.h b/include/linux/rmap.h
index 77216742c178..80cd162a8aa6 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -99,14 +99,14 @@ static inline struct anon_vma *page_anon_vma(struct page *page)
99 return page_rmapping(page); 99 return page_rmapping(page);
100} 100}
101 101
102static inline void anon_vma_lock(struct vm_area_struct *vma) 102static inline void vma_lock_anon_vma(struct vm_area_struct *vma)
103{ 103{
104 struct anon_vma *anon_vma = vma->anon_vma; 104 struct anon_vma *anon_vma = vma->anon_vma;
105 if (anon_vma) 105 if (anon_vma)
106 spin_lock(&anon_vma->lock); 106 spin_lock(&anon_vma->lock);
107} 107}
108 108
109static inline void anon_vma_unlock(struct vm_area_struct *vma) 109static inline void vma_unlock_anon_vma(struct vm_area_struct *vma)
110{ 110{
111 struct anon_vma *anon_vma = vma->anon_vma; 111 struct anon_vma *anon_vma = vma->anon_vma;
112 if (anon_vma) 112 if (anon_vma)