aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorBaolin Wang <[email protected]>2022-04-28 23:16:09 -0700
committerakpm <[email protected]>2022-04-28 23:16:09 -0700
commit9c42fe4e30a9b934b1de66c2edca196563221392 (patch)
treec435755b4e49b6fc20b8b66960ec0e608ff08a77 /tools/perf/scripts/python/flamegraph.py
parent4cd614841c06338a087769ee3cfa96718784d1f5 (diff)
mm: migrate: simplify the refcount validation when migrating hugetlb mapping
There is no need to validate the hugetlb page's refcount before trying to freeze the hugetlb page's expected refcount, instead we can just rely on the page_ref_freeze() to simplify the validation. Moreover we are always under the page lock when migrating the hugetlb page mapping, which means nowhere else can remove it from the page cache, so we can remove the xas_load() validation under the i_pages lock. Link: https://lkml.kernel.org/r/eb2fbbeaef2b1714097b9dec457426d682ee0635.1649676424.git.baolin.wang@linux.alibaba.com Signed-off-by: Baolin Wang <[email protected]> Acked-by: Mike Kravetz <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: "Huang, Ying" <[email protected]> Cc: Muchun Song <[email protected]> Cc: Alistair Popple <[email protected]> Cc: Zi Yan <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions