diff options
author | Matthew Wilcox (Oracle) <[email protected]> | 2024-10-02 16:25:27 +0100 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-11-06 20:11:08 -0800 |
commit | 9c0a1b99e3919f5fddeeaf96b36f86ccc5cc2a10 (patch) | |
tree | 5c8b3ff1fefd266e89de7d860439b9fdfc38a469 /tools/perf/scripts/python | |
parent | 12833a732346dcf4e3bde55d6556fedf90743656 (diff) |
ksm: use a folio in try_to_merge_one_page()
Patch series "Remove PageKsm()".
The KSM flag is almost always tested on the folio rather than on the page.
This series removes the final users of PageKsm() and makes the flag only
This patch (of 5):
It is safe to use a folio here because all callers took a refcount on this
page. The one wrinkle is that we have to recalculate the value of folio
after splitting the page, since it has probably changed. Replaces nine
calls to compound_head() with one.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Cc: Alex Shi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions