Skip to contentSkip to conversation

mm.git: a small error in mm-stable

DISCUSSION Hugh Dickins 3 participants 3 messages Jul 12, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

In looking through a "git log -p --reverse v6.10-rc6..HEAD"
of mm-everything, I just noticed a small anomaly in mm-stable:
ac90c56bbd73 "mm/ksm: refactor out try_to_merge_with_zero_page()" modifies mm/hugetlb.c! undoing a oneliner which had been folded-merged into 003af997c8a9 "hugetlb: force allocating surplus hugepages on mempolicy allowed nodes" which comes just before it.

Hugh

#1 lore raw
Quoted 6 lines · Hugh Dickins

In looking through a "git log -p --reverse v6.10-rc6..HEAD"
of mm-everything, I just noticed a small anomaly in mm-stable:
ac90c56bbd73 "mm/ksm: refactor out try_to_merge_with_zero_page()" modifies mm/hugetlb.c! undoing a oneliner which had been folded-merged into 003af997c8a9 "hugetlb: force allocating surplus hugepages on mempolicy allowed nodes" which comes just before it.

Yeah, it's strange, that commit I sent should just change ksm.c

https://lore.kernel.org/lkml/[email protected]/

---
 mm/ksm.c | 70 
++++++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 40 insertions(+), 30 deletions(-)
maintainer
#2 lore raw
In reply to Hugh Dickins
Quoted 7 lines · On Thu, 11 Jul 2024 20:30:07 -0700 (PDT) Hugh Dickins <[email protected]> wrote:

In looking through a "git log -p --reverse v6.10-rc6..HEAD"
of mm-everything, I just noticed a small anomaly in mm-stable:
ac90c56bbd73 "mm/ksm: refactor out try_to_merge_with_zero_page()" modifies mm/hugetlb.c! undoing a oneliner which had been folded-merged into 003af997c8a9 "hugetlb: force allocating surplus hugepages on mempolicy allowed nodes" which comes just before it.

Huh thanks. This cycle has been pretty bad with new hotfixes coming in and messing up mm-stable.

mm/hugetlb.c renamed from mm/hugetlb.c~mm-hugetlbc-undo-errant-change +1 -0
@@ -2634,6 +2634,7 @@ static int gather_surplus_pages(struct h
 retry:
 	spin_unlock_irq(&hugetlb_lock);
 	for (i = 0; i < needed; i++) {
+		folio = NULL;
 		for_each_node_mask(node, cpuset_current_mems_allowed) {
 			if (!mbind_nodemask || node_isset(node, *mbind_nodemask)) {
 				folio = alloc_surplus_hugetlb_folio(h, htlb_alloc_mask(h),

_