linux-yocto/fs/erofs
Gao Xiang cf7f345b53 erofs: address D-cache aliasing
commit 27917e8194 upstream.

Flush the D-cache before unlocking folios for compressed inodes, as
they are dirtied during decompression.

Avoid calling flush_dcache_folio() on every CPU write, since it's more
like playing whack-a-mole without real benefit.

It has no impact on x86 and arm64/risc-v: on x86, flush_dcache_folio()
is a no-op, and on arm64/risc-v, PG_dcache_clean (PG_arch_1) is clear
for new page cache folios.  However, certain ARM boards are affected,
as reported.

Fixes: 3883a79abd ("staging: erofs: introduce VLE decompression support")
Closes: https://lore.kernel.org/r/c1e51e16-6cc6-49d0-a63e-4e9ff6c4dd53@pengutronix.de
Closes: https://lore.kernel.org/r/38d43fae-1182-4155-9c5b-ffc7382d9917@siemens.com
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
Tested-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Link: https://lore.kernel.org/r/20250709034614.2780117-2-hsiangkao@linux.alibaba.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-15 12:04:51 +02:00
..
compress.h erofs: simplify compression configuration parser 2024-03-01 13:26:38 +01:00
data.c erofs: fix to add missing tracepoint in erofs_read_folio() 2025-07-17 18:32:12 +02:00
decompressor_lzma.c erofs: avoid hardcoded blocksize for subpage block support 2024-10-17 15:22:08 +02:00
decompressor.c erofs: address D-cache aliasing 2025-08-15 12:04:51 +02:00
dir.c erofs: get rid of debug_one_dentry() 2025-08-15 12:04:51 +02:00
erofs_fs.h erofs: tidy up EROFS on-disk naming 2025-01-23 17:17:17 +01:00
fscache.c erofs: avoid hardcoded blocksize for subpage block support 2024-10-17 15:22:08 +02:00
inode.c erofs: sunset erofs_dbg() 2025-08-15 12:04:51 +02:00
internal.h erofs: sunset erofs_dbg() 2025-08-15 12:04:51 +02:00
Kconfig
Makefile
namei.c erofs: sunset erofs_dbg() 2025-08-15 12:04:51 +02:00
pcpubuf.c
super.c erofs: set block size to the on-disk block size 2024-10-17 15:22:09 +02:00
sysfs.c
utils.c
xattr.c erofs: avoid hardcoded blocksize for subpage block support 2024-10-17 15:22:08 +02:00
xattr.h erofs: avoid hardcoded blocksize for subpage block support 2024-10-17 15:22:08 +02:00
zdata.c erofs: address D-cache aliasing 2025-08-15 12:04:51 +02:00
zmap.c erofs: sunset erofs_dbg() 2025-08-15 12:04:51 +02:00