mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
mm: remove double indirection on tlb parameter to free_pgd_range() & Co
The double indirection here is not needed anywhere and hence (at least) confusing. Signed-off-by: Jan Beulich <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Nick Piggin <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: Paul Mundt <[email protected]> Cc: "David S. Miller" <[email protected]> Acked-by: Jeremy Fitzhardinge <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a352894d07
commit
42b7772812
12 changed files with 26 additions and 21 deletions
|
|
@ -32,6 +32,8 @@
|
|||
#include <asm/tlb.h>
|
||||
#include <asm/mmu_context.h>
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
#ifndef arch_mmap_check
|
||||
#define arch_mmap_check(addr, len, flags) (0)
|
||||
#endif
|
||||
|
|
@ -1763,7 +1765,7 @@ static void unmap_region(struct mm_struct *mm,
|
|||
update_hiwater_rss(mm);
|
||||
unmap_vmas(&tlb, vma, start, end, &nr_accounted, NULL);
|
||||
vm_unacct_memory(nr_accounted);
|
||||
free_pgtables(&tlb, vma, prev? prev->vm_end: FIRST_USER_ADDRESS,
|
||||
free_pgtables(tlb, vma, prev? prev->vm_end: FIRST_USER_ADDRESS,
|
||||
next? next->vm_start: 0);
|
||||
tlb_finish_mmu(tlb, start, end);
|
||||
}
|
||||
|
|
@ -2063,7 +2065,7 @@ void exit_mmap(struct mm_struct *mm)
|
|||
/* Use -1 here to ensure all VMAs in the mm are unmapped */
|
||||
end = unmap_vmas(&tlb, vma, 0, -1, &nr_accounted, NULL);
|
||||
vm_unacct_memory(nr_accounted);
|
||||
free_pgtables(&tlb, vma, FIRST_USER_ADDRESS, 0);
|
||||
free_pgtables(tlb, vma, FIRST_USER_ADDRESS, 0);
|
||||
tlb_finish_mmu(tlb, 0, end);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue