lib: stackdepot: add support to disable stack depot
[linux-2.6-microblaze.git] / include / linux / rmap.h
index 70085ca..def5c62 100644 (file)
@@ -213,7 +213,8 @@ struct page_vma_mapped_walk {
 
 static inline void page_vma_mapped_walk_done(struct page_vma_mapped_walk *pvmw)
 {
-       if (pvmw->pte)
+       /* HugeTLB pte is set to the relevant page table entry without pte_mapped. */
+       if (pvmw->pte && !PageHuge(pvmw->page))
                pte_unmap(pvmw->pte);
        if (pvmw->ptl)
                spin_unlock(pvmw->ptl);