[merged mm-stable] mm-page_alloc-remove-a-couple-of-vm_bug_onst.patch removed from -mm tree
Andrew Morton <[email protected]>
| Newsgroups | org.kernel.vger.mm-commits |
|---|---|
| Message-ID | <[email protected]> |
The quilt patch titled
Subject: mm/page_alloc: remove a couple of VM_BUG_ON()st
has been removed from the -mm tree. Its filename was
mm-page_alloc-remove-a-couple-of-vm_bug_onst.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: remove a couple of VM_BUG_ON()st
Date: Wed, 15 Jul 2026 11:03:21 +0000
VM_BUG_ON() is out of favour and on the way to removal, since I recently
touched alloc_pages_node_noprof() I am removing that invocation, and also
removing the __folio_alloc_node_noprof() one for consistency. If this
precondition is violated, the system will soon crash anyway.
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Brendan Jackman <[email protected]>
Suggested-by: Zi Yan <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Acked-by: Zi Yan <[email protected]>
Reviewed-by: Vlastimil Babka (SUSE) <[email protected]>
Cc: Brendan Jackman <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Liam R. Howlett <[email protected]>
Cc: Lorenzo Stoakes <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Michal Koutný <[email protected]>
Cc: Mike Rapoport <[email protected]>
Cc: Sebastian Andrzej Siewior <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Suren Baghdasaryan <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Waiman Long <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
include/linux/gfp.h | 1 -
mm/page_alloc.c | 1 -
2 files changed, 2 deletions(-)
--- a/include/linux/gfp.h~mm-page_alloc-remove-a-couple-of-vm_bug_onst
+++ a/include/linux/gfp.h
@@ -255,7 +255,6 @@ static inline void warn_if_node_offline(
static inline
struct folio *__folio_alloc_node_noprof(gfp_t gfp, unsigned int order, int nid)
{
- VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES);
warn_if_node_offline(nid, gfp);
return __folio_alloc_noprof(gfp, order, nid, NULL);
--- a/mm/page_alloc.c~mm-page_alloc-remove-a-couple-of-vm_bug_onst
+++ a/mm/page_alloc.c
@@ -5426,7 +5426,6 @@ struct page *alloc_pages_node_noprof(int
if (nid == NUMA_NO_NODE)
nid = numa_mem_id();
- VM_BUG_ON(nid < 0 || nid >= MAX_NUMNODES);
warn_if_node_offline(nid, gfp_mask);
return __alloc_pages_noprof(gfp_mask, order, nid, NULL, ALLOC_DEFAULT);
_
Patches currently in -mm which might be from [email protected] are