Skip to content

Commit 0c941cf

Browse files
Matthew Wilcox (Oracle)torvalds
authored andcommitted
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. It will cause us to fall back to the slow path when there was no need to do that Link: https://lkml.kernel.org/r/20211120174429.2596303-1-willy@infradead.org Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Naoya Horiguchi <naoya.horiguchi@nec.com> Cc: Yang Shi <shy828301@gmail.com> Cc: "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d020d9e commit 0c941cf

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎mm/filemap.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3253,8 +3253,6 @@ static struct page *next_uptodate_page(struct page *page,
32533253
goto skip;
32543254
if (!PageUptodate(page) || PageReadahead(page))
32553255
goto skip;
3256-
if (PageHWPoison(page))
3257-
goto skip;
32583256
if (!trylock_page(page))
32593257
goto skip;
32603258
if (page->mapping != mapping)

0 commit comments

Comments
 (0)