diff options
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/hugetlbpage.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hugetlbpage.c b/arch/powerpc/mm/hugetlbpage.c index 6bc9dbad7dea..8bce515dc320 100644 --- a/arch/powerpc/mm/hugetlbpage.c +++ b/arch/powerpc/mm/hugetlbpage.c | |||
@@ -703,7 +703,8 @@ int hash_huge_page(struct mm_struct *mm, unsigned long access, | |||
703 | slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; | 703 | slot = (hash & htab_hash_mask) * HPTES_PER_GROUP; |
704 | slot += (old_pte & _PAGE_F_GIX) >> 12; | 704 | slot += (old_pte & _PAGE_F_GIX) >> 12; |
705 | 705 | ||
706 | if (ppc_md.hpte_updatepp(slot, rflags, va, 1, local) == -1) | 706 | if (ppc_md.hpte_updatepp(slot, rflags, va, mmu_huge_psize, |
707 | local) == -1) | ||
707 | old_pte &= ~_PAGE_HPTEFLAGS; | 708 | old_pte &= ~_PAGE_HPTEFLAGS; |
708 | } | 709 | } |
709 | 710 | ||