aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorSteve Capper <[email protected]>2016-08-10 16:27:55 -0700
committerLinus Torvalds <[email protected]>2016-08-10 16:40:56 -0700
commit57dea93ac42d341e1fe902528b348ef6763fa485 (patch)
tree0652d7e6e82697150eeb2fede8c9fbe7fe4af777 /tools/perf/scripts/python/Perf-Trace-Util/lib
parentc8efc390c1e0eca195ae59a2f7cec46773620e0c (diff)
rmap: fix compound check logic in page_remove_file_rmap
In page_remove_file_rmap(.) we have the following check: VM_BUG_ON_PAGE(compound && !PageTransHuge(page), page); This is meant to check for either HugeTLB pages or THP when a compound page is passed in. Unfortunately, if one disables CONFIG_TRANSPARENT_HUGEPAGE, then PageTransHuge(.) will always return false, provoking BUGs when one runs the libhugetlbfs test suite. This patch replaces PageTransHuge(), with PageHead() which will work for both HugeTLB and THP. Fixes: dd78fedde4b9 ("rmap: support file thp") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Steve Capper <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Cc: Huang Shijie <[email protected]> Cc: Will Deacon <[email protected]> Cc: Catalin Marinas <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions