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

Muchun Song <[email protected]>
Newsgroups gmane.linux.ports.sh.devel,gmane.linux.ports.alpha,gmane.linux.ports.arm.kernel,gmane.linux.documentation,gmane.linux.ports.hexagon,gmane.linux.kernel,gmane.linux.ports.mips,gmane.linux.kernel.mm,gmane.linux.ports.parisc,gmane.linux.ports.riscv,gmane.linux.kernel.arc,gmane.linux.uml.devel,gmane.linux.ports.ppc64.devel,gmane.linux.ports.sparc
Message-ID <[email protected]>

> On Dec 28, 2025, at 20:39, Mike Rapoport <[email protected]> wrote:
> 
> From: "Mike Rapoport (Microsoft)" <[email protected]>
> 
> 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) <[email protected]>

Nice cleanup.

Acked-by: Muchun Song <[email protected]>

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.