All of lore.kernel.org
 help / color / mirror / Atom feed
* [failures] mm-pagewalk-simplify-hugepage-boundary-calculation.patch removed from -mm tree
@ 2025-12-28 22:56 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2025-12-28 22:56 UTC (permalink / raw)
  To: mm-commits, zhengqi.arch, yuanchu, yosry.ahmed, willy, weixugc,
	vbabka, surenb, sj, shakeel.butt, rppt, nphamcs, mhocko,
	lorenzo.stoakes, liam.howlett, hannes, david.laight.linux, david,
	chengming.zhou, axelrasmussen, chandna.sahil, akpm


The quilt patch titled
     Subject: mm: pagewalk: simplify hugepage boundary calculation
has been removed from the -mm tree.  Its filename was
     mm-pagewalk-simplify-hugepage-boundary-calculation.patch

This patch was dropped because it had testing failures

------------------------------------------------------
From: Sahil Chandna <chandna.sahil@gmail.com>
Subject: mm: pagewalk: simplify hugepage boundary calculation
Date: Fri, 28 Nov 2025 12:31:42 +0530

Patch series "mm: Coccinelle-driven cleanups across memory management
code", v4.

This patch series contains three minor cleanups identified by Coccinelle
scripts under scripts/coccinelle/misc/:

  * Use ALIGN() to compute the next hugepage boundary instead of the
    open-coded expression and use min() macro to improve readability.
  * Use the %pe printk format specifier for PTR_ERR() reporting
    in vmscan.c and zswap.c
Found using:
  make coccicheck MODE=report M=mm/


This patch (of 3):

Replace hugepage boundary computation with ALIGN() helper instead of an
open coded expression.  This helps to improves code readability.

This was flagged by Coccinelle (misc/minmax.cocci) as an opportunity to
use min(), after which the boundary computation was updated following
review suggestions.

Found by: make coccicheck MODE=report M=mm/
No functional change intended.

Link: https://lkml.kernel.org/r/cover.1764312627.git.chandna.sahil@gmail.com
Link: https://lkml.kernel.org/r/35ab82f052d248c0047c10bf01853e37e4f9b4e4.1764312627.git.chandna.sahil@gmail.com
Signed-off-by: Sahil Chandna <chandna.sahil@gmail.com>
Acked-by: David Hildenbrand (Red Hat) <david@kernel.org>
Suggested-by: David Hildenbrand (Red Hat) <david@kernel.org>
Suggested-by: Matthew Wilcox <willy@infradead.org>
Suggested-by: David Laight <david.laight.linux@gmail.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Chengming Zhou <chengming.zhou@linux.dev>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Qi Zheng <zhengqi.arch@bytedance.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Wei Xu <weixugc@google.com>
Cc: Yosry Ahmed <yosry.ahmed@linux.dev>
Cc: Yuanchu Xie <yuanchu@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/pagewalk.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- a/mm/pagewalk.c~mm-pagewalk-simplify-hugepage-boundary-calculation
+++ a/mm/pagewalk.c
@@ -312,8 +312,7 @@ static int walk_pgd_range(unsigned long
 static unsigned long hugetlb_entry_end(struct hstate *h, unsigned long addr,
 				       unsigned long end)
 {
-	unsigned long boundary = (addr & huge_page_mask(h)) + huge_page_size(h);
-	return boundary < end ? boundary : end;
+	return min(ALIGN(addr, huge_page_size(h)), end);
 }
 
 static int walk_hugetlb_range(unsigned long addr, unsigned long end,
_

Patches currently in -mm which might be from chandna.sahil@gmail.com are

mm-vmscan-use-%pe-to-print-error-pointers.patch
mm-zswap-use-%pe-to-print-error-pointers.patch


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

only message in thread, other threads:[~2025-12-28 22:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-28 22:56 [failures] mm-pagewalk-simplify-hugepage-boundary-calculation.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.