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>
This commit is contained in:

committed by
Linus Torvalds

parent
7bc32f6f90
commit
9e60109f12
@@ -87,7 +87,7 @@ static inline void get_anon_vma(struct anon_vma *anon_vma)
|
||||
atomic_inc(&anon_vma->external_refcount);
|
||||
}
|
||||
|
||||
void drop_anon_vma(struct anon_vma *);
|
||||
void put_anon_vma(struct anon_vma *);
|
||||
#else
|
||||
static inline void anonvma_external_refcount_init(struct anon_vma *anon_vma)
|
||||
{
|
||||
@@ -102,7 +102,7 @@ static inline void get_anon_vma(struct anon_vma *anon_vma)
|
||||
{
|
||||
}
|
||||
|
||||
static inline void drop_anon_vma(struct anon_vma *anon_vma)
|
||||
static inline void put_anon_vma(struct anon_vma *anon_vma)
|
||||
{
|
||||
}
|
||||
#endif /* CONFIG_KSM */
|
||||
|
Reference in New Issue
Block a user