> 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.
- [PATCH 19/28] um: introduce arch_zone_limits_init() Mike Rapoport
- [PATCH 21/28] xtensa: introduce arch_zone_limits_init() Mike Rapoport
- [PATCH 20/28] x86: introduce arch_zone_limits_init() Mike Rapoport
- [PATCH 22/28] arch, mm: consolidate initialization of node... Mike Rapoport
- [PATCH 25/28] x86: don't reserve hugetlb memory in setup_a... Mike Rapoport
- Re: [PATCH 25/28] x86: don't reserve hugetlb memory i... Sergey Shtylyov
- [PATCH 23/28] arch, mm: consolidate initialization of SPAR... Mike Rapoport
- [PATCH 24/28] mips: drop paging_init() Mike Rapoport
- [PATCH 26/28] mm, arch: consolidate hugetlb CMA reservatio... Mike Rapoport
- [PATCH 27/28] mm/hugetlb: drop hugetlb_cma_check() Mike Rapoport
- Re: [PATCH 27/28] mm/hugetlb: drop hugetlb_cma_check(... Muchun Song
- [PATCH 28/28] Revert "mm/hugetlb: deal with multiple ... Mike Rapoport
