diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2024-03-28 22:58:27 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-25 20:56:31 -0700 |
| commit | 7e8347413e5bc4d54712942dad43bfcf2501ab3b (patch) | |
| tree | 019894cbfec801994672d9c1ed00df78cc036fd0 /tools/perf/scripts/python/netdev-times.py | |
| parent | 835c3a25aa373d486514e4e0f5a7450ea82ae489 (diff) | |
mm: correct page_mapped_in_vma() for large folios
Patch series "Unify vma_address and vma_pgoff_address".
The current vma_address() pretends that the ambiguity between head & tail
page is an advantage. If you pass a head page to vma_address(), it will
operate on all pages in the folio, while if you pass a tail page, it will
operate on a single page. That's not what any of the callers actually
want, so first convert all callers to use vma_pgoff_address() and then
rename vma_pgoff_address() to vma_address().
This patch (of 3):
If 'page' is the first page of a large folio then vma_address() will scan
for any page in the entire folio. This can lead to page_mapped_in_vma()
returning true if some of the tail pages are mapped and the head page is
not. This could lead to memory failure choosing to kill a task
unnecessarily.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions