Thread (38 messages) 38 messages, 7 authors, 2026-01-02

Re: [PATCH 27/28] mm/hugetlb: drop hugetlb_cma_check()

From: Muchun Song <muchun.song@linux.dev>
Date: 2025-12-29 03:14:01
Also in: linux-alpha, linux-cxl, linux-doc, linux-m68k, linux-mips, linux-mm, linux-riscv, linux-s390, linux-sh, linux-um, lkml, loongarch, sparclinux

On Dec 28, 2025, at 20:39, Mike Rapoport [off-list ref] wrote:

From: "Mike Rapoport (Microsoft)" <rppt@kernel.org>

hugetlb_cma_check() was required when the ordering of hugetlb_cma_reserve()
and hugetlb_bootmem_alloc() was architecture depended.

Since hugetlb_cma_reserve() is always called before hugetlb_bootmem_alloc()
there is no need to check whether hugetlb_cma_reserve() was already called.

Drop unneeded hugetlb_cma_check() function.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Nice cleanup.

Acked-by: Muchun Song <muchun.song@linux.dev>

Thanks.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help