Re: [PATCH v4] mm/hugetlb: add available_huge_pages() func
From: Muchun Song
Date: Mon Sep 19 2022 - 23:20:06 EST
> On Sep 20, 2022, at 09:51, Xin Hao <xhao@xxxxxxxxxxxxxxxxx> wrote:
>
> In hugetlb.c file, there are several places to compare the values of
> 'h->free_huge_pages' and 'h->resv_huge_pages', it looks a bit messy, so
> there add a new available_huge_pages() func to do these.
>
> Signed-off-by: Xin Hao <xhao@xxxxxxxxxxxxxxxxx>
> Reviewed-by: Mike Kravetz <mike.kravetz@xxxxxxxxxx>
Reviewed-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
Thanks.