mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Reviewed-by: KAMEZAWA Hiroyuki <[email protected]> Acked-by: Hugh Dickins <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Acked-by: Mel Gorman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7bc32f6f90
commit
9e60109f12
4 changed files with 11 additions and 24 deletions
|
|
@ -764,7 +764,7 @@ skip_unmap:
|
|||
|
||||
/* Drop an anon_vma reference if we took one */
|
||||
if (anon_vma)
|
||||
drop_anon_vma(anon_vma);
|
||||
put_anon_vma(anon_vma);
|
||||
|
||||
uncharge:
|
||||
if (!charge)
|
||||
|
|
@ -856,7 +856,7 @@ static int unmap_and_move_huge_page(new_page_t get_new_page,
|
|||
remove_migration_ptes(hpage, hpage);
|
||||
|
||||
if (anon_vma)
|
||||
drop_anon_vma(anon_vma);
|
||||
put_anon_vma(anon_vma);
|
||||
out:
|
||||
unlock_page(hpage);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue