diff options
author | Jan Beulich <jbeulich@novell.com> | 2008-07-24 00:27:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-24 13:47:15 -0400 |
commit | 42b7772812d15b86543a23b82bd6070eef9a08b1 (patch) | |
tree | 10665ee01fe82ce17c68a6278d044531b1ed64c0 /arch | |
parent | a352894d07059649398c4769dc8b645e1a1dad88 (diff) |
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 <jbeulich@novell.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <npiggin@suse.de>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/mm/hugetlbpage.c | 2 | ||||
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/ia64/mm/hugetlbpage.c b/arch/ia64/mm/hugetlbpage.c index d3ce8f3bcaa6..cd49e2860eef 100644 --- a/arch/ia64/mm/hugetlbpage.c +++ b/arch/ia64/mm/hugetlbpage.c | |||
@@ -112,7 +112,7 @@ follow_huge_pmd(struct mm_struct *mm, unsigned long address, pmd_t *pmd, int wri | |||
112 | return NULL; | 112 | return NULL; |
113 | } | 113 | } |
114 | 114 | ||
115 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 115 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
116 | unsigned long addr, unsigned long end, | 116 | unsigned long addr, unsigned long end, |
117 | unsigned long floor, unsigned long ceiling) | 117 | unsigned long floor, unsigned long ceiling) |
118 | { | 118 | { |
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 0d12fba31bc5..1a96cc891cf5 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -255,7 +255,7 @@ static void hugetlb_free_pud_range(struct mmu_gather *tlb, pgd_t *pgd, | |||
255 | * | 255 | * |
256 | * Must be called with pagetable lock held. | 256 | * Must be called with pagetable lock held. |
257 | */ | 257 | */ |
258 | void hugetlb_free_pgd_range(struct mmu_gather **tlb, | 258 | void hugetlb_free_pgd_range(struct mmu_gather *tlb, |
259 | unsigned long addr, unsigned long end, | 259 | unsigned long addr, unsigned long end, |
260 | unsigned long floor, unsigned long ceiling) | 260 | unsigned long floor, unsigned long ceiling) |
261 | { | 261 | { |
@@ -315,13 +315,13 @@ void hugetlb_free_pgd_range(struct mmu_gather **tlb, | |||
315 | return; | 315 | return; |
316 | 316 | ||
317 | start = addr; | 317 | start = addr; |
318 | pgd = pgd_offset((*tlb)->mm, addr); | 318 | pgd = pgd_offset(tlb->mm, addr); |
319 | do { | 319 | do { |
320 | BUG_ON(get_slice_psize((*tlb)->mm, addr) != mmu_huge_psize); | 320 | BUG_ON(get_slice_psize(tlb->mm, addr) != mmu_huge_psize); |
321 | next = pgd_addr_end(addr, end); | 321 | next = pgd_addr_end(addr, end); |
322 | if (pgd_none_or_clear_bad(pgd)) | 322 | if (pgd_none_or_clear_bad(pgd)) |
323 | continue; | 323 | continue; |
324 | hugetlb_free_pud_range(*tlb, pgd, addr, next, floor, ceiling); | 324 | hugetlb_free_pud_range(tlb, pgd, addr, next, floor, ceiling); |
325 | } while (pgd++, addr = next, addr != end); | 325 | } while (pgd++, addr = next, addr != end); |
326 | } | 326 | } |
327 | 327 | ||