summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-05-25 00:10:01 -0400
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-06-05 15:49:36 -0400
commitbbdd8a47bcaea8cecba905b0e2147f958c4a2ab8 (patch)
treeffd283469257ba81be156e2d36274666a135caf4
parentd6a9f921b05077114d21a16d0d574ec3d5e3d7b5 (diff)
iomap: Remove test for folio error
Just because there has been a read error doesn't mean we should avoid marking this part of the folio as uptodate. Indeed, it may overwrite the error part of the folio and let us mark the entire folio uptodate. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
-rw-r--r--fs/iomap/buffered-io.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index d2a9f699e17e..66278a14bfa7 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -154,9 +154,6 @@ static void iomap_iop_set_range_uptodate(struct folio *folio,
static void iomap_set_range_uptodate(struct folio *folio,
struct iomap_page *iop, size_t off, size_t len)
{
- if (folio_test_error(folio))
- return;
-
if (iop)
iomap_iop_set_range_uptodate(folio, iop, off, len);
else