diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2020-09-24 09:05:51 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-07 08:40:32 -0700 |
commit | 6c58fbf7344f027175344b56865acd05dfc85c35 (patch) | |
tree | 03ab3d8ff8a0cfe0d55fa4f99533ad3f6265ee4b /crypto/tea.c | |
parent | 4c1bd931c6dd54fa7aa27090c6dae5d5a508e514 (diff) |
iomap: Set all uptodate bits for an Uptodate pageiomap-5.10-merge_2020-10-10iomap-5.10-merge_2020-10-08
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) <willy@infradead.org>
Reported-by: Qian Cai <cai@redhat.com>
Cc: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'crypto/tea.c')
0 files changed, 0 insertions, 0 deletions