f358afc52c
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> |
||
---|---|---|
.. | ||
assembler.h | ||
barrier.h | ||
bitfield.h | ||
cache_info.h | ||
cache.h | ||
cacheflush.h | ||
current.h | ||
delay.h | ||
elf.h | ||
fixmap.h | ||
fpu.h | ||
fpuemu.h | ||
ftrace.h | ||
futex.h | ||
highmem.h | ||
io.h | ||
irqflags.h | ||
Kbuild | ||
l2_cache.h | ||
linkage.h | ||
memory.h | ||
mmu_context.h | ||
mmu.h | ||
nds32_fpu_inst.h | ||
nds32.h | ||
page.h | ||
perf_event.h | ||
pgalloc.h | ||
pgtable.h | ||
pmu.h | ||
proc-fns.h | ||
processor.h | ||
ptrace.h | ||
sfp-machine.h | ||
shmparam.h | ||
stacktrace.h | ||
string.h | ||
suspend.h | ||
swab.h | ||
syscall.h | ||
syscalls.h | ||
thread_info.h | ||
tlb.h | ||
tlbflush.h | ||
uaccess.h | ||
unistd.h | ||
vdso_datapage.h | ||
vdso_timer_info.h | ||
vdso.h | ||
vermagic.h | ||
vmalloc.h |