aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rmap.h
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2011-03-22 19:32:46 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-22 20:44:03 -0400
commit9e60109f125013b6c571f399a15a8b0fe1ffa4e6 (patch)
tree52d34958e82e5649b737e21e453516a3ecd365d3 /include/linux/rmap.h
parent7bc32f6f90dae67730645da67bfd44304f810f93 (diff)
mm: rename drop_anon_vma() to put_anon_vma()
The normal code pattern used in the kernel is: get/put. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Hugh Dickins <hughd@google.com> Reviewed-by: Rik van Riel <riel@redhat.com> Acked-by: Mel Gorman <mel@csn.ul.ie> 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 e9fd04ca1e51..b9b23ddca63a 100644
--- a/include/linux/rmap.h
+++ b/include/linux/rmap.h
@@ -87,7 +87,7 @@ static inline void get_anon_vma(struct anon_vma *anon_vma)
87 atomic_inc(&anon_vma->external_refcount); 87 atomic_inc(&anon_vma->external_refcount);
88} 88}
89 89
90void drop_anon_vma(struct anon_vma *); 90void put_anon_vma(struct anon_vma *);
91#else 91#else
92static inline void anonvma_external_refcount_init(struct anon_vma *anon_vma) 92static inline void anonvma_external_refcount_init(struct anon_vma *anon_vma)
93{ 93{
@@ -102,7 +102,7 @@ static inline void get_anon_vma(struct anon_vma *anon_vma)
102{ 102{
103} 103}
104 104
105static inline void drop_anon_vma(struct anon_vma *anon_vma) 105static inline void put_anon_vma(struct anon_vma *anon_vma)
106{ 106{
107} 107}
108#endif /* CONFIG_KSM */ 108#endif /* CONFIG_KSM */