WSL2-Linux-Kernel/arch/csky/abiv1
Christoph Hellwig f358afc52c mm: remove flush_kernel_dcache_page
flush_kernel_dcache_page is a rather confusing interface that implements a
subset of flush_dcache_page by not being able to properly handle page
cache mapped pages.

The only callers left are in the exec code as all other previous callers
were incorrect as they could have dealt with page cache pages.  Replace
the calls to flush_kernel_dcache_page with calls to flush_dcache_page,
which for all architectures does either exactly the same thing, can
contains one or more of the following:

 1) an optimization to defer the cache flush for page cache pages not
    mapped into userspace
 2) additional flushing for mapped page cache pages if cache aliases
    are possible

Link: https://lkml.kernel.org/r/20210712060928.4161649-7-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Cc: Alex Shi <alexs@kernel.org>
Cc: Geoff Levand <geoff@infradead.org>
Cc: Greentime Hu <green.hu@gmail.com>
Cc: Guo Ren <guoren@kernel.org>
Cc: Helge Deller <deller@gmx.de>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Nick Hu <nickhu@andestech.com>
Cc: Paul Cercueil <paul@crapouillou.net>
Cc: Rich Felker <dalias@libc.org>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Vincent Chen <deanbo422@gmail.com>
Cc: Yoshinori Sato <ysato@users.osdn.me>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-09-03 09:58:13 -07:00
..
inc/abi mm: remove flush_kernel_dcache_page 2021-09-03 09:58:13 -07:00
Makefile csky: Fixup abiv1 memset error 2019-07-19 14:21:36 +08:00
alignment.c csky: Support kernel non-aligned access 2019-08-20 20:15:44 +08:00
bswapdi.c csky: Library functions 2018-10-26 00:54:24 +08:00
bswapsi.c csky: Library functions 2018-10-26 00:54:24 +08:00
cacheflush.c mm: remove flush_kernel_dcache_page 2021-09-03 09:58:13 -07:00
memcpy.S csky: Library functions 2018-10-26 00:54:24 +08:00
mmap.c csky: Fixup arch_get_unmapped_area() implementation 2019-08-20 16:09:37 +08:00
strksyms.c csky: Fixup abiv1 memset error 2019-07-19 14:21:36 +08:00