On 2024/1/2 21:12, Gang Li wrote:LGTM.
hugetlb_hstate_alloc_pages_gigantic(struct hstate *h)
The name is so long, how about hugetlb_gigantic_pages_alloc_boot?
hugetlb_hstate_alloc_pages_non_gigantic(struct hstate *h)
hugetlb_pages_alloc_boot?
It it unnecessary to reverse the condition. A little sime like following:
if (hstate_is_gigantic(h))
/* gigantic pages */
else
/* normal pages */