android_kernel_motorola_sm6375/fs/iomap
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Matthew Wilcox (Oracle) f691ab24cf iomap: Set all uptodate bits for an Uptodate page
[ Upstream commit 4595a298d5563cf76c1d852970f162051fd1a7a6 ]

For filesystems with block size < page size, we need to set all the
per-block uptodate bits if the page was already uptodate at the time
we create the per-block metadata.  This can happen if the page is
invalidated (eg by a write to drop_caches) but ultimately not removed
from the page cache.

This is a data corruption issue as page writeback skips blocks which
are marked !uptodate.

Fixes: 9dc55f1389 ("iomap: add support for sub-pagesize buffered I/O without buffer heads")
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Reported-by: Qian Cai <[email protected]>
Cc: Brian Foster <[email protected]>
Reviewed-by: Gao Xiang <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2024-03-01 13:13:35 +01:00
..
apply.c
buffered-io.c
direct-io.c
fiemap.c
Makefile
seek.c
swapfile.c