aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <[email protected]>2023-11-08 18:28:05 +0000
committerAndrew Morton <[email protected]>2023-12-10 16:51:38 -0800
commit01d1e0e6b7d99ebaf2e42d2205595080b7d0c271 (patch)
tree44908edde8dda5f68929a2052dd1b8446e790590 /tools/perf/scripts/python
parent1e12cbb9f69541181afab6b1ff358b4f1dd3e253 (diff)
mm: convert __do_fault() to use a folio
Convert vmf->page to a folio as soon as we're going to use it. This fixes a bug if the fault handler returns a tail page with hardware poison; tail pages have an invalid page->index, so we would fail to unmap the page from the page tables. We actually have to unmap the entire folio (or mapping_evict_folio() will fail), so use unmap_mapping_folio() instead. This also saves various calls to compound_head() hidden in lock_page(), put_page(), etc. Link: https://lkml.kernel.org/r/[email protected] Fixes: 793917d997df ("mm/readahead: Add large folio readahead") Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Cc: Naoya Horiguchi <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions