diff options
Diffstat (limited to 'arch/powerpc/mm/hugetlbpage.c')
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 | ||