Skip to contentSkip to conversation

mm-page_alloc-replace-flag-check-with-pagehwpoison-in-check_new_page_bad.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Apr 1, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/page_alloc: replace flag check with PageHWPoison() in check_new_page_bad()
has been removed from the -mm tree. Its filename was
mm-page_alloc-replace-flag-check-with-pagehwpoison-in-check_new_page_bad.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Ye Liu <[email protected]>
Subject: mm/page_alloc: replace flag check with PageHWPoison() in check_new_page_bad()
Date: Thu, 20 Mar 2025 14:33:46 +0800

This patch replaces the direct check for the __PG_HWPOISON flag with the PageHWPoison() macro, improving code readability and maintaining consistency with other parts of the memory management code.

---

 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-replace-flag-check-with-pagehwpoison-in-check_new_page_bad +1 -1
@@ -1593,7 +1593,7 @@ static __always_inline void page_del_and
 
 static void check_new_page_bad(struct page *page)
 {
-	if (unlikely(page->flags & __PG_HWPOISON)) {
+	if (unlikely(PageHWPoison(page))) {
 		/* Don't complain about hwpoisoned pages */
 		if (PageBuddy(page))
 			__ClearPageBuddy(page);

_

Patches currently in -mm which might be from [email protected] are