VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Yang Shi <shy828301@gmail.com> 2021-09-02 14:58:37 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-03 09:58:15 -0700 commit: 941ca063eb8ed01e66336b1f493e95b107024bc8 parent: f6533121696b2126a33b436f433a048b4427944f
Commit Summary:
mm: hwpoison: dump page for unhandlable page
Diffstat:
1 file changed, 3 insertions, 3 deletions
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 5decacb86b9f..b3e8c75bee66 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1228,6 +1228,9 @@ try_again:
 		ret = -EIO;
 	}
 out:
+	if (ret == -EIO)
+		dump_page(p, "hwpoison: unhandlable page");
+
 	return ret;
 }
 
@@ -2205,9 +2208,6 @@ retry:
 			try_again = false;
 			goto retry;
 		}
-	} else if (ret == -EIO) {
-		pr_info("%s: %#lx: unknown page type: %lx (%pGp)\n",
-			 __func__, pfn, page->flags, &page->flags);
 	}
 
 	return ret;