diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2022-05-10 03:20:53 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-05-13 16:20:07 +0200 |
commit | dfc7ab57560da385f705b28e2bf50e3b90444a6b (patch) | |
tree | b485b1d51b79da9e517ff06c36a49b8259c250b4 /samples | |
parent | mm: rmap: move the cache flushing to the correct place for hugetlb PMD sharing (diff) | |
download | linux-dfc7ab57560da385f705b28e2bf50e3b90444a6b.tar.xz linux-dfc7ab57560da385f705b28e2bf50e3b90444a6b.zip |
mm: rmap: use flush_cache_range() to flush cache for hugetlb pages
Now we will use flush_cache_page() to flush cache for anonymous hugetlb
pages when unmapping or migrating a hugetlb page mapping, but the
flush_cache_page() only handles a PAGE_SIZE range on some architectures
(like arm32, arc and so on), which will cause potential cache issues.
Thus change to use flush_cache_range() to cover the whole size of a
hugetlb page.
Link: https://lkml.kernel.org/r/dc903b378d1e2d26bbbe85409ab9d009631f175c.1651056365.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Mina Almasry <almasrymina@google.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions