diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2022-05-10 04:20:53 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-05-13 17:20:07 +0300 |
commit | dfc7ab57560da385f705b28e2bf50e3b90444a6b (patch) | |
tree | b485b1d51b79da9e517ff06c36a49b8259c250b4 /include/dt-bindings/phy | |
parent | 54205e9c5425049aef1bc7a812f890f00b5f79c7 (diff) | |
download | linux-dfc7ab57560da385f705b28e2bf50e3b90444a6b.tar.xz |
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 'include/dt-bindings/phy')
0 files changed, 0 insertions, 0 deletions