All of lore.kernel.org
 help / color / mirror / Atom feed
* mm.git: a small error in mm-stable
@ 2024-07-12  3:30 Hugh Dickins
  2024-07-12  3:45 ` Chengming Zhou
  2024-07-12  6:45 ` Andrew Morton
  0 siblings, 2 replies; 3+ messages in thread
From: Hugh Dickins @ 2024-07-12  3:30 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Aristeu Rozanski, Chengming Zhou, Hugh Dickins, mm-commits

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mm.git: a small error in mm-stable
  2024-07-12  3:30 mm.git: a small error in mm-stable Hugh Dickins
@ 2024-07-12  3:45 ` Chengming Zhou
  2024-07-12  6:45 ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Chengming Zhou @ 2024-07-12  3:45 UTC (permalink / raw)
  To: Hugh Dickins, Andrew Morton; +Cc: Aristeu Rozanski, mm-commits

On 2024/7/12 11:30, Hugh Dickins 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.

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

https://lore.kernel.org/lkml/20240621-b4-ksm-scan-optimize-v2-1-1c328aa9e30b@linux.dev/

Signed-off-by: Chengming Zhou <chengming.zhou@linux.dev>
---
  mm/ksm.c | 70 
++++++++++++++++++++++++++++++++++++----------------------------
  1 file changed, 40 insertions(+), 30 deletions(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: mm.git: a small error in mm-stable
  2024-07-12  3:30 mm.git: a small error in mm-stable Hugh Dickins
  2024-07-12  3:45 ` Chengming Zhou
@ 2024-07-12  6:45 ` Andrew Morton
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2024-07-12  6:45 UTC (permalink / raw)
  To: Hugh Dickins; +Cc: Aristeu Rozanski, Chengming Zhou, mm-commits

On Thu, 11 Jul 2024 20:30:07 -0700 (PDT) Hugh Dickins <hughd@google.com> 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.

--- a/mm/hugetlb.c~mm-hugetlbc-undo-errant-change
+++ a/mm/hugetlb.c
@@ -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),
_


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-12  6:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12  3:30 mm.git: a small error in mm-stable Hugh Dickins
2024-07-12  3:45 ` Chengming Zhou
2024-07-12  6:45 ` Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.