On Fri, Jun 11, 2021 at 03:09:46PM +0800, Huang Pei wrote: > This fixes Page Table accounting bug. > > MIPS is the ONLY arch just defining __HAVE_ARCH_PMD_ALLOC_ONE alone. > Since commit b2b29d6d011944 (mm: account PMD tables like PTE tables), > "pmd_free" in asm-generic with PMD table accounting and "pmd_alloc_one" > in MIPS without PMD table accounting causes PageTable accounting number > negative, which read by global_zone_page_state(), always returns 0. > > Signed-off-by: Huang Pei <huangpei@xxxxxxxxxxx> > --- > arch/mips/include/asm/pgalloc.h | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]