VisionFive2 Linux kernel

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

More than 9999 Commits   33 Branches   55 Tags
author: Naoya Horiguchi <naoya.horiguchi@nec.com> 2021-09-24 15:43:20 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-24 16:13:34 -0700 commit: acfa299a4a63a58e5e81a87cb16798f20d35f7d7 parent: 7d42e98182586f57f376406d033f05fe135edb75
Commit Summary:
mm, hwpoison: add is_free_buddy_page() in HWPoisonHandlable()
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 54879c339024..41901c7bb58f 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1126,7 +1126,7 @@ static int page_action(struct page_state *ps, struct page *p,
  */
 static inline bool HWPoisonHandlable(struct page *page)
 {
-	return PageLRU(page) || __PageMovable(page);
+	return PageLRU(page) || __PageMovable(page) || is_free_buddy_page(page);
 }
 
 static int __get_hwpoison_page(struct page *page)