Re: [PATCH v2 1/9] mm: hugetlb: convert to use more alloc_fresh_hugetlb_folio()

Zi Yan
2025-09-09T00:54:48Z

On 2 Sep 2025, at 8:48, Kefeng Wang wrote:

> Simplify alloc_fresh_hugetlb_folio() and convert more functions
> to use it, which help us to remove prep_new_hugetlb_folio() and
> __prep_new_hugetlb_folio().
>
> Reviewed-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
> mm/hugetlb.c | 44 +++++++++++++-------------------------------
> 1 file changed, 13 insertions(+), 31 deletions(-)
>

LGTM. I agree with Oscar that the accounting code movement needs
a comment, although the change makes hugetlb code more like
core mm code. Reviewed-by: Zi Yan <ziy@nvidia.com>

Best Regards,
Yan, Zi