aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNaoya Horiguchi <[email protected]>2022-04-28 23:16:02 -0700
committerakpm <[email protected]>2022-04-28 23:16:02 -0700
commitb283d983a7a6ffe3939ff26f06d151331a7c1071 (patch)
tree369be38981efe0927f6612c66704828fe3f95e41 /tools/perf/scripts/python
parentef526b17bc3399b8df25d574aa11fc36f89da80a (diff)
mm, hugetlb, hwpoison: separate branch for free and in-use hugepage
We know that HPageFreed pages should have page refcount 0, so get_page_unless_zero() always fails and returns 0. So explicitly separate the branch based on page state for minor optimization and better readability. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Naoya Horiguchi <[email protected]> Suggested-by: Mike Kravetz <[email protected]> Suggested-by: Miaohe Lin <[email protected]> Reviewed-by: Mike Kravetz <[email protected]> Reviewed-by: Miaohe Lin <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions