Commit 9a5085b3 authored by Richard Weinberger's avatar Richard Weinberger

um: Call pgtable_pmd_page_dtor() in __pmd_free_tlb()

Commit b2b29d6d ("mm: account PMD tables like PTE tables") uncovered
a bug in uml, we forgot to call the destructor.
While we are here, give x a sane name.
Reported-by: default avatarAnton Ivanov <anton.ivanov@cambridgegreys.com>
Co-developed-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Tested-by: default avatarChristopher Obbard <chris.obbard@collabora.com>
parent eccc8767
......@@ -33,7 +33,13 @@ do { \
} while (0)
#ifdef CONFIG_3_LEVEL_PGTABLES
#define __pmd_free_tlb(tlb,x, address) tlb_remove_page((tlb),virt_to_page(x))
#define __pmd_free_tlb(tlb, pmd, address) \
do { \
pgtable_pmd_page_dtor(virt_to_page(pmd)); \
tlb_remove_page((tlb),virt_to_page(pmd)); \
} while (0) \
#endif
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment