History

mm: mark pages in use for page tables

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 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.

Matthew Wilcox committed 8 years ago

Commit 1d40a5e1 parent 6e292b95 files · +12 −1Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/kernel-page-flags.h+1−1
@@ -35,6 +35,6 @@ · 34 unmodified lines
3535 #define KPF_BALLOON 23
3636 #define KPF_ZERO_PAGE 24
3737 #define KPF_IDLE 25
38−
38+#define KPF_PGTABLE 26
3939
4040 #endif /* _UAPILINUX_KERNEL_PAGE_FLAGS_H */