diff options
author | Thomas Hellstrom (VMware) <[email protected]> | 2020-03-24 18:47:17 +0100 |
---|---|---|
committer | Thomas Hellstrom (VMware) <[email protected]> | 2020-03-24 18:47:17 +0100 |
commit | 2484ca9b6a20451debb789d0a89af6f15de99826 (patch) | |
tree | 29ba1199f39289ebeabc17631e4ef3bf2e1e0c98 /tools/perf/scripts/python/check-perf-trace.py | |
parent | f05a3849f6449f67843113778bf56e02f2b4ddf8 (diff) |
mm: Introduce vma_is_special_huge
For VM_PFNMAP and VM_MIXEDMAP vmas that want to support transhuge pages
and -page table entries, introduce vma_is_special_huge() that takes the
same codepaths as vma_is_dax().
The use of "special" follows the definition in memory.c, vm_normal_page():
"Special" mappings do not wish to be associated with a "struct page"
(either it doesn't exist, or it exists but they don't want to touch it)
For PAGE_SIZE pages, "special" is determined per page table entry to be
able to deal with COW pages. But since we don't have huge COW pages,
we can classify a vma as either "special huge" or "normal huge".
Cc: Andrew Morton <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: "Matthew Wilcox (Oracle)" <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Ralph Campbell <[email protected]>
Cc: "Jérôme Glisse" <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: Dan Williams <[email protected]>
Signed-off-by: Thomas Hellstrom (VMware) <[email protected]>
Acked-by: Christian König <[email protected]>
Acked-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions