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: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
parent 3b60d53d
...@@ -154,9 +154,6 @@ static void iomap_iop_set_range_uptodate(struct folio *folio, ...@@ -154,9 +154,6 @@ static void iomap_iop_set_range_uptodate(struct folio *folio,
static void iomap_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) struct iomap_page *iop, size_t off, size_t len)
{ {
if (folio_test_error(folio))
return;
if (iop) if (iop)
iomap_iop_set_range_uptodate(folio, iop, off, len); iomap_iop_set_range_uptodate(folio, iop, off, len);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment