diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2021-05-25 14:11:25 +0000 |
|---|---|---|
| committer | Matthew Wilcox (Oracle) <[email protected]> | 2022-01-03 01:28:35 +0000 |
| commit | 9144785b02765409f63b2fe16948bc746248cf1f (patch) | |
| tree | 7a0c490bcead29729e8a624c1091e034e22bab13 | |
| parent | Merge tag 'perf-tools-fixes-for-v5.16-2021-12-07' of git://git.kernel.org/pub... (diff) | |
| download | kernel-9144785b02765409f63b2fe16948bc746248cf1f.tar.gz kernel-9144785b02765409f63b2fe16948bc746248cf1f.zip | |
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) <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: William Kucharski <[email protected]>
| -rw-r--r-- | mm/filemap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index daa0e23a6ee6..39c4c46c6133 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -3253,8 +3253,6 @@ static struct page *next_uptodate_page(struct page *page, goto skip; if (!PageUptodate(page) || PageReadahead(page)) goto skip; - if (PageHWPoison(page)) - goto skip; if (!trylock_page(page)) goto skip; if (page->mapping != mapping) |
