]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - mm/page_vma_mapped.c
mm/memory-hotplug: switch locking to a percpu rwsem
[karo-tx-linux.git] / mm / page_vma_mapped.c
index de9c40d7304aa0e714bdd32abe79517ec3d73038..8ec6ba230bb9dabba967489f0ba8f15ca61b8806 100644 (file)
@@ -116,7 +116,8 @@ bool page_vma_mapped_walk(struct page_vma_mapped_walk *pvmw)
 
        if (unlikely(PageHuge(pvmw->page))) {
                /* when pud is not present, pte will be NULL */
-               pvmw->pte = huge_pte_offset(mm, pvmw->address);
+               pvmw->pte = huge_pte_offset(mm, pvmw->address,
+                                           PAGE_SIZE << compound_order(page));
                if (!pvmw->pte)
                        return false;