filemap: Remove PageHWPoison check from next_uptodate_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 25 May 2021 14:11:25 +0000 (10:11 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 3 Jan 2022 01:28:35 +0000 (20:28 -0500)
commit9144785b02765409f63b2fe16948bc746248cf1f
tree7a0c490bcead29729e8a624c1091e034e22bab13
parent2a987e65025e2b79c6d453b78cb5985ac6e5eb26
filemap: Remove PageHWPoison check from next_uptodate_page()

Pages are individually marked as suffering from hardware poisoning.
Checking that the head page is not hardware poisoned doesn't make
sense; we might be after a subpage.  We check each page individually
before we use it, so this was an optimisation gone wrong.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/filemap.c