]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/mm/hugetlbpage.c
powerpc/hugetlbfs: Export HPAGE_SHIFT
[karo-tx-linux.git] / arch / powerpc / mm / hugetlbpage.c
index a4f33de4008eeed9829eb1ceef01e72d7cedfd8f..19659081da72d7833f237ef8f2970483df16d485 100644 (file)
@@ -32,6 +32,7 @@
 #define PAGE_SHIFT_16G 34
 
 unsigned int HPAGE_SHIFT;
+EXPORT_SYMBOL(HPAGE_SHIFT);
 
 /*
  * Tracks gpages after the device tree is scanned and before the
@@ -77,7 +78,7 @@ static int __hugepte_alloc(struct mm_struct *mm, hugepd_t *hpdp,
                num_hugepd = 1;
        }
 
-       new = kmem_cache_zalloc(cachep, GFP_KERNEL);
+       new = kmem_cache_zalloc(cachep, pgtable_gfp_flags(mm, GFP_KERNEL));
 
        BUG_ON(pshift > HUGEPD_SHIFT_MASK);
        BUG_ON((unsigned long)new & HUGEPD_SHIFT_MASK);