|
@@ -191,6 +191,9 @@ pgtable_t pgtable_trans_huge_withdraw(struct mm_struct *mm, pmd_t *pmdp)
|
|
void pmdp_invalidate(struct vm_area_struct *vma, unsigned long address,
|
|
void pmdp_invalidate(struct vm_area_struct *vma, unsigned long address,
|
|
pmd_t *pmdp)
|
|
pmd_t *pmdp)
|
|
{
|
|
{
|
|
|
|
+ pmd_t entry = *pmdp;
|
|
|
|
+ if (pmd_numa(entry))
|
|
|
|
+ entry = pmd_mknonnuma(entry);
|
|
set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(*pmdp));
|
|
set_pmd_at(vma->vm_mm, address, pmdp, pmd_mknotpresent(*pmdp));
|
|
flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
|
|
flush_tlb_range(vma, address, address + HPAGE_PMD_SIZE);
|
|
}
|
|
}
|