Merge from Linus' tree.
[cascardo/linux.git] / arch / ppc64 / mm / hash_native.c
index 29b0745..874cf96 100644 (file)
@@ -342,15 +342,14 @@ static void native_flush_hash_range(unsigned long number, int local)
        hpte_t *hptep;
        unsigned long hpte_v;
        struct ppc64_tlb_batch *batch = &__get_cpu_var(ppc64_tlb_batch);
-
-       /* XXX fix for large ptes */
-       unsigned long large = 0;
+       unsigned long large;
 
        local_irq_save(flags);
 
        j = 0;
        for (i = 0; i < number; i++) {
                va = batch->vaddr[j];
+               large = pte_huge(batch->pte[i]);
                if (large)
                        vpn = va >> HPAGE_SHIFT;
                else