On 04/18/2018 08:49 PM, Matthew Wilcox wrote: > From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> > > Define a new PageTable bit in the page_type and use it to mark pages in > use as page tables. This can be helpful when debugging crashdumps or Yep, once I've added such flag for debugging myself :) > analysing memory fragmentation. Add a KPF flag to report these pages > to userspace and update page-types.c to interpret that flag. > > Note that only pages currently accounted as NR_PAGETABLES are tracked > as PageTable; this does not include pgd/p4d/pud/pmd pages. Those will > be the subject of a later patch. > > Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx> > Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx> Acked-by: Vlastimil Babka <vbabka@xxxxxxx>