Re: [PATCH v3 0/4] Subject: [PATCH v3 0/4] mm/hugetlb: Fix CMA parsing, flags and usage accounting
From: Andrew Morton
Date: Mon Nov 09 2026 - 19:29:01 EST
On Fri, 6 Nov 2026 18:05:17 +0800 Kaitao Cheng <kaitao.cheng@xxxxxxxxx> wrote:
> From: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
>
> This series fixes three independent HugeTLB issues reported by Sashiko
> and includes a follow-up cleanup of NR_HUGETLB accounting.
Thanks, I've updated mm.git's mm-unstable branch to this version.
> Changes in v3:
> - Retain patch 3/3 from v1.
> - Fix code alignment.
>
Here's how v3 altered mm.git:
mm/hugetlb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/mm/hugetlb.c~b
+++ a/mm/hugetlb.c
@@ -1450,9 +1450,9 @@ void add_hugetlb_folio(struct hstate *h,
/* Callers must clear transient flags before returning to the pool. */
VM_WARN_ON_ONCE_FOLIO((unsigned long)folio->private &
- ~(BIT(HPG_vmemmap_optimized) |
- BIT(HPG_raw_hwp_unreliable) |
- BIT(HPG_cma)), folio);
+ ~(BIT(HPG_vmemmap_optimized) |
+ BIT(HPG_raw_hwp_unreliable) |
+ BIT(HPG_cma)), folio);
INIT_LIST_HEAD(&folio->lru);
h->nr_huge_pages++;
_