All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit-fix.patch removed from -mm tree
@ 2025-11-12  0:12 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-11-12  0:12 UTC (permalink / raw)
  To: mm-commits, ziy, vbabka, surenb, sj, mhocko, kirill, jackmanb,
	hannes, clm, joshua.hahnjy, akpm


The quilt patch titled
     Subject: mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit-fix
has been removed from the -mm tree.  Its filename was
     mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit-fix.patch

This patch was dropped because it was folded into mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit.patch

------------------------------------------------------
From: Joshua Hahn <joshua.hahnjy@gmail.com>
Subject: mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit-fix
Date: Tue, 14 Oct 2025 12:28:22 -0700

checking for 0-ness is sufficient, per Vlastimil

Since to_free and pcp->count cannot become negative, make the checks into an
equality check instead.

Link: https://lkml.kernel.org/r/20251014192827.851389-1-joshua.hahnjy@gmail.com
Signed-off-by: Joshua Hahn <joshua.hahnjy@gmail.com>
Reviewed-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Brendan Jackman <jackmanb@google.com>
Cc: Chris Mason <clm@fb.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Michal Hocko <mhocko@suse.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/mm/page_alloc.c~mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit-fix
+++ a/mm/page_alloc.c
@@ -2884,7 +2884,7 @@ static bool free_frozen_page_commit(stru
 		free_pcppages_bulk(zone, to_free_batched, pcp, pindex);
 		to_free -= to_free_batched;
 
-		if (to_free <= 0 || pcp->count <= 0)
+		if (to_free == 0 || pcp->count == 0)
 			break;
 
 		pcp_spin_unlock(pcp);
_

Patches currently in -mm which might be from joshua.hahnjy@gmail.com are

mm-page_alloc-clarify-batch-tuning-in-zone_batchsize.patch
mm-page_alloc-prevent-reporting-pcp-batch-=-0.patch
mm-page_alloc-vmstat-simplify-refresh_cpu_vm_stats-change-detection.patch
mm-page_alloc-batch-page-freeing-in-decay_pcp_high.patch
mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-11-12  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12  0:12 [folded-merged] mm-page_alloc-batch-page-freeing-in-free_frozen_page_commit-fix.patch removed from -mm tree 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.