X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=include%2Flinux%2Frmap.h;h=def5c62c93b3beb40555b20e49eabeac7fec748c;hb=e1fdc403349c64fa58f4c163f4bf9b860b4db808;hp=70085ca1a3fc9dc69c514741cb0ec8293acb1317;hpb=ca765c731ebd62231ec096a121ca11a39a51a07b;p=linux-2.6-microblaze.git diff --git a/include/linux/rmap.h b/include/linux/rmap.h index 70085ca1a3fc..def5c62c93b3 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h @@ -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);