Skip to contentSkip to conversation

mm-page_alloc-cleanup-flag-vars-in-alloc_pages_bulk_noprof.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message May 29

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/page_alloc: cleanup flag vars in alloc_pages_bulk_noprof()
has been removed from the -mm tree. Its filename was
mm-page_alloc-cleanup-flag-vars-in-alloc_pages_bulk_noprof.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: Brendan Jackman <[email protected]>
Subject: mm/page_alloc: cleanup flag vars in alloc_pages_bulk_noprof()
Date: Tue, 31 Mar 2026 10:52:13 +0000

These two variables are redundant, squash them to align alloc_pages_bulk_noprof() with the style used in alloc_frozen_pages_nolock_noprof().

---

 mm/page_alloc.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
mm/page_alloc.c renamed from mm/page_alloc.c~mm-page_alloc-cleanup-flag-vars-in-alloc_pages_bulk_noprof +1 -4
@@ -5054,7 +5054,6 @@ unsigned long alloc_pages_bulk_noprof(gf
 	struct per_cpu_pages *pcp;
 	struct list_head *pcp_list;
 	struct alloc_context ac;
-	gfp_t alloc_gfp;
 	unsigned int alloc_flags = ALLOC_WMARK_LOW;
 	int nr_populated = 0, nr_account = 0;
 
@@ -5095,10 +5094,8 @@ unsigned long alloc_pages_bulk_noprof(gf
 
 	/* May set ALLOC_NOFRAGMENT, fragmentation will return 1 page. */
 	gfp &= gfp_allowed_mask;
-	alloc_gfp = gfp;
-	if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &alloc_gfp, &alloc_flags))
+	if (!prepare_alloc_pages(gfp, 0, preferred_nid, nodemask, &ac, &gfp, &alloc_flags))
 		goto out;
-	gfp = alloc_gfp;
 
 	/* Find an allowed local zone that meets the low watermark. */
 	z = ac.preferred_zoneref;

_

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

mm-introduce-for_each_free_list.patch mm-page_alloc-dont-overload-migratetype-in-find_suitable_fallback.patch mm-rejig-pageblock-mask-definitions.patch mm-page_alloc-remove-ifdefs-from-pindex-helpers.patch mm-page_alloc-drop-a-misleading-__always_inline.patch mm-page_alloc-document-that-alloc_pages_nolock-uses-rcu.patch mm-page_alloc-remove-vm_bug_ons-from-pindex-helpers.patch