All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] mm-page_alloc-simplify-lowmem_reserve-max-calculation-v3.patch removed from -mm tree
@ 2025-09-13 22:19 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-09-13 22:19 UTC (permalink / raw)
  To: mm-commits, ziy, vbabka, surenb, mhocko, jackmanb, hannes, liuye,
	akpm


The quilt patch titled
     Subject: mm-page_alloc-simplify-lowmem_reserve-max-calculation-v3
has been removed from the -mm tree.  Its filename was
     mm-page_alloc-simplify-lowmem_reserve-max-calculation-v3.patch

This patch was dropped because it was folded into mm-page_alloc-simplify-lowmem_reserve-max-calculation.patch

------------------------------------------------------
From: Ye Liu <liuye@kylinos.cn>
Subject: mm-page_alloc-simplify-lowmem_reserve-max-calculation-v3
Date: Fri, 15 Aug 2025 10:45:09 +0800

fix layout, use min_t

Link: https://lkml.kernel.org/r/20250815024509.37900-1-ye.liu@linux.dev
Signed-off-by: Ye Liu <liuye@kylinos.cn>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Zi Yan <ziy@nvidia.com>
Cc: Brendan Jackman <jackmanb@google.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/page_alloc.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

--- a/mm/page_alloc.c~mm-page_alloc-simplify-lowmem_reserve-max-calculation-v3
+++ a/mm/page_alloc.c
@@ -6236,15 +6236,13 @@ static void calculate_totalreserve_pages
 			unsigned long managed_pages = zone_managed_pages(zone);
 
 			/* Find valid and maximum lowmem_reserve in the zone */
-			for (j = i; j < MAX_NR_ZONES; j++) {
+			for (j = i; j < MAX_NR_ZONES; j++)
 				max = max(max, zone->lowmem_reserve[j]);
-			}
 
 			/* we treat the high watermark as reserved pages. */
 			max += high_wmark_pages(zone);
 
-			if (max > managed_pages)
-				max = managed_pages;
+			max = min_t(unsigned long, max, managed_pages);
 
 			pgdat->totalreserve_pages += max;
 
_

Patches currently in -mm which might be from liuye@kylinos.cn are

mm-replace-20-page_shift-with-common-macros-for-pages-mb-conversion.patch
mm-page_alloc-simplify-lowmem_reserve-max-calculation.patch
mm-fix-typos-in-vma-comments.patch
mm-page_alloc-remove-redundant-pcp-free_count-initialization-in-per_cpu_pages_init.patch


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

only message in thread, other threads:[~2025-09-13 22:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-13 22:19 [folded-merged] mm-page_alloc-simplify-lowmem_reserve-max-calculation-v3.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.