diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2020-09-25 18:16:53 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2020-09-28 15:47:01 +0000 |
| commit | 4595a298d5563cf76c1d852970f162051fd1a7a6 (patch) | |
| tree | b2abc85f95dfbe458f4bd22572e62da773957238 /drivers/usb/cdns3/cdns3-imx.c | |
| parent | iomap: Change calling convention for zeroing (diff) | |
| download | kernel-4595a298d5563cf76c1d852970f162051fd1a7a6.tar.gz kernel-4595a298d5563cf76c1d852970f162051fd1a7a6.zip | |
iomap: Set all uptodate bits for an Uptodate page
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: 9dc55f1389f9 ("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]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions
