diff options
author | Vishal Moola (Oracle) <[email protected]> | 2023-10-20 11:33:31 -0700 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2023-10-25 16:47:14 -0700 |
commit | 98b32d296d95d7aa0516c36b72406277412268cd (patch) | |
tree | 30bf5c812ab30e32979c9c134979a64529be4c14 /tools/perf/scripts/python/stackcollapse.py | |
parent | b455f39d228935f88eebcd1f7c1a6981093c6a3b (diff) |
mm/khugepaged: convert collapse_pte_mapped_thp() to use folios
This removes 2 calls to compound_head() and helps convert khugepaged to
use folios throughout.
Previously, if the address passed to collapse_pte_mapped_thp()
corresponded to a tail page, the scan would fail immediately. Using
filemap_lock_folio() we get the corresponding folio back and try to
operate on the folio instead.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Vishal Moola (Oracle) <[email protected]>
Reviewed-by: Rik van Riel <[email protected]>
Reviewed-by: Yang Shi <[email protected]>
Cc: Kefeng Wang <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions