aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/bpf/bpf_lru_list.h
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linux.alibaba.com>2022-05-09 18:20:53 -0700
committerAndrew Morton <akpm@linux-foundation.org>2022-05-13 07:20:07 -0700
commitdfc7ab57560da385f705b28e2bf50e3b90444a6b (patch)
treeb485b1d51b79da9e517ff06c36a49b8259c250b4 /kernel/bpf/bpf_lru_list.h
parentmm: rmap: move the cache flushing to the correct place for hugetlb PMD sharing (diff)
downloadlinux-dev-dfc7ab57560da385f705b28e2bf50e3b90444a6b.tar.xz
linux-dev-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 'kernel/bpf/bpf_lru_list.h')
0 files changed, 0 insertions, 0 deletions