Skip to contentSkip to conversation

mm-remove-redundant-return-in-set_huge_zero_folio.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Mar 18, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm: remove redundant return in set_huge_zero_folio()
has been removed from the -mm tree. Its filename was
mm-remove-redundant-return-in-set_huge_zero_folio.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: Dev Jain <[email protected]>
Subject: mm: remove redundant return in set_huge_zero_folio()
Date: Thu, 6 Mar 2025 20:13:15 +0530

It is the responsibility of the caller to check pmd_none(); in any case, we are not achieving anything by returning since there is no return value to tell the caller that we succeeded or not. So remove this check.

---

 mm/huge_memory.c |    2 --
 1 file changed, 2 deletions(-)
mm/huge_memory.c renamed from mm/huge_memory.c~mm-remove-redundant-return-in-set_huge_zero_folio +0 -2
@@ -1309,8 +1309,6 @@ static void set_huge_zero_folio(pgtable_
 		struct folio *zero_folio)
 {
 	pmd_t entry;
-	if (!pmd_none(*pmd))
-		return;
 	entry = mk_pmd(&zero_folio->page, vma->vm_page_prot);
 	entry = pmd_mkhuge(entry);
 	pgtable_trans_huge_deposit(mm, pmd, pgtable);

_

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