]> Git Repo - linux.git/commit
mm: mark pages in use for page tables
authorMatthew Wilcox <[email protected]>
Fri, 8 Jun 2018 00:08:23 +0000 (17:08 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:37 +0000 (17:34 -0700)
commit1d40a5ea01d53251c23c7be541d3f4a656cfc537
tree9c969d32e9baec47e0c0db4592a6a5bfb9a7964c
parent6e292b9be7f4358985ce33ae1f59ab30a8c09e08
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.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Acked-by: Kirill A. Shutemov <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Jérôme Glisse <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/proc/page.c
include/linux/mm.h
include/linux/page-flags.h
include/uapi/linux/kernel-page-flags.h
tools/vm/page-types.c
This page took 0.066339 seconds and 4 git commands to generate.