diff options
| author | Muchun Song <[email protected]> | 2022-04-28 23:16:09 -0700 |
|---|---|---|
| committer | akpm <[email protected]> | 2022-04-28 23:16:09 -0700 |
| commit | 7f9c9b607dc2641c77266efe788fab853d27dbd1 (patch) | |
| tree | b757568151c45fb7d5703820e2c4931355f3aafd /tools/perf/scripts/python/flamegraph.py | |
| parent | f3b9e8cc8b09ba3b41bb068c24a1061e8a70d26f (diff) | |
mm: rmap: fix cache flush on THP pages
Patch series "Fix some bugs related to ramp and dax", v7.
Patch 1-2 fix a cache flush bug, because subsequent patches depend on
those on those changes, there are placed in this series. Patch 3-4 are
preparation for fixing a dax bug in patch 5. Patch 6 is code cleanup
since the previous patch removes the usage of follow_invalidate_pte().
This patch (of 6):
The flush_cache_page() only remove a PAGE_SIZE sized range from the cache.
However, it does not cover the full pages in a THP except a head page.
Replace it with flush_cache_range() to fix this issue. At least, no
problems were found due to this. Maybe because the architectures that
have virtual indexed caches is less.
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: f27176cfc363 ("mm: convert page_mkclean_one() to use page_vma_mapped_walk()")
Signed-off-by: Muchun Song <[email protected]>
Reviewed-by: Yang Shi <[email protected]>
Reviewed-by: Dan Williams <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Alistair Popple <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Ralph Campbell <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Xiyu Yang <[email protected]>
Cc: "Kirill A. Shutemov" <[email protected]>
Cc: Ross Zwisler <[email protected]>
Cc: Xiongchun Duan <[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