]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/ia64/mm/hugetlbpage.c
mm/hugetlb: add size parameter to huge_pte_offset()
[karo-tx-linux.git] / arch / ia64 / mm / hugetlbpage.c
index 85de86d36fdf2a71783697212e2e5cdb1e2dbc46..ae35140332f70ba7f749ffc1fa095efacaf8b000 100644 (file)
@@ -44,7 +44,7 @@ huge_pte_alloc(struct mm_struct *mm, unsigned long addr, unsigned long sz)
 }
 
 pte_t *
-huge_pte_offset (struct mm_struct *mm, unsigned long addr)
+huge_pte_offset (struct mm_struct *mm, unsigned long addr, unsigned long sz)
 {
        unsigned long taddr = htlbpage_to_page(addr);
        pgd_t *pgd;
@@ -92,7 +92,7 @@ struct page *follow_huge_addr(struct mm_struct *mm, unsigned long addr, int writ
        if (REGION_NUMBER(addr) != RGN_HPAGE)
                return ERR_PTR(-EINVAL);
 
-       ptep = huge_pte_offset(mm, addr);
+       ptep = huge_pte_offset(mm, addr, HPAGE_SIZE);
        if (!ptep || pte_none(*ptep))
                return NULL;
        page = pte_page(*ptep);