Re: [PATCH] um: Call pgtable_pmd_page_dtor() in __pmd_free_tlb()

From: Matthew Wilcox
Date: Mon Oct 19 2020 - 21:51:23 EST


On Mon, Oct 19, 2020 at 11:10:49PM +0200, Richard Weinberger wrote:
> Commit b2b29d6d0119 ("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: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>
> Co-developed-by: Matthew Wilcox <willy@xxxxxxxxxxxxx>

Signed-off-by: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx>

> Signed-off-by: Richard Weinberger <richard@xxxxxx>

And as a bonus, $ grep PageTables /proc/meminfo
PageTables: 128720 kB

gets more accurate!