mm: fix return value of scan_lru_pages in memory unplug
[firefly-linux-kernel-4.4.55.git] / mm / filemap.c
index 3064b7b79e9840c1b29dc413640e45d12978ad45..46e3f8a11b2a3435ff319619334bfcde692ac8b0 100644 (file)
@@ -1120,6 +1120,12 @@ page_not_up_to_date_locked:
                }
 
 readpage:
+               /*
+                * A previous I/O error may have been due to temporary
+                * failures, eg. multipath errors.
+                * PG_error will be set again if readpage fails.
+                */
+               ClearPageError(page);
                /* Start the actual read. The read will unlock the page. */
                error = mapping->a_ops->readpage(filp, page);