Skip to contentSkip to conversation

mm-huge_memory-convert-has_hwpoisoned-into-a-pure-folio-flag.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Jan 16, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/huge_memory: convert has_hwpoisoned into a pure folio flag
has been removed from the -mm tree. Its filename was
mm-huge_memory-convert-has_hwpoisoned-into-a-pure-folio-flag.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: David Hildenbrand <[email protected]>
Subject: mm/huge_memory: convert has_hwpoisoned into a pure folio flag
Date: Mon, 13 Jan 2025 14:16:06 +0100

Patch series "mm: hugetlb+THP folio and migration cleanups", v2.

Some cleanups around more folio conversion and migration handling that I collected working on random stuff.

This patch (of 6):

Let's stop setting it on pages, there is no need to anymore.

---

 include/linux/page-flags.h |    6 ++----
 mm/huge_memory.c           |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)
include/linux/page-flags.h renamed from include/linux/page-flags.h~mm-huge_memory-convert-has_hwpoisoned-into-a-pure-folio-flag +2 -4
@@ -906,11 +906,9 @@ TESTPAGEFLAG_FALSE(TransCompound, transc
  *
  * This flag is set by hwpoison handler.  Cleared by THP split or free page.
  */
-PAGEFLAG(HasHWPoisoned, has_hwpoisoned, PF_SECOND)
-	TESTSCFLAG(HasHWPoisoned, has_hwpoisoned, PF_SECOND)
+FOLIO_FLAG(has_hwpoisoned, FOLIO_SECOND_PAGE)
 #else
-PAGEFLAG_FALSE(HasHWPoisoned, has_hwpoisoned)
-	TESTSCFLAG_FALSE(HasHWPoisoned, has_hwpoisoned)
+FOLIO_FLAG_FALSE(has_hwpoisoned)
 #endif
 
 /*
mm/huge_memory.c renamed from mm/huge_memory.c~mm-huge_memory-convert-has_hwpoisoned-into-a-pure-folio-flag +1 -1
@@ -3290,7 +3290,7 @@ static void __split_huge_page(struct pag
 	/* lock lru list/PageCompound, ref frozen by page_ref_freeze */
 	lruvec = folio_lruvec_lock(folio);
 
-	ClearPageHasHWPoisoned(head);
+	folio_clear_has_hwpoisoned(folio);
 
 	for (i = nr - new_nr; i >= new_nr; i -= new_nr) {
 		struct folio *tail;

_

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