Messages in this thread | | | Date | Tue, 20 Sep 2022 09:46:03 +0800 | Subject | Re: [PATCH V3] mm/hugetlb: add available_huge_pages() func | From | haoxin <> |
| |
在 2022/9/20 上午7:58, Mike Kravetz 写道: > On 09/17/22 09:15, Xin Hao 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. > Thanks, I think the code looks a little better with this change. > >> Signed-off-by: Xin Hao <xhao@linux.alibaba.com> >> Changes from v2 >> https://lore.kernel.org/linux-mm/20220916064127.1904-1-xhao@linux.alibaba.com/ >> - Convert is_resv_equal_free() to available_huge_pages() > I believe the above 'Changes from v2' information should be below the marker > '---' as it will not be included in the changelog. Ok, i will remove the changelog in the next patch. > >> --- >> mm/hugetlb.c | 14 +++++++++----- >> 1 file changed, 9 insertions(+), 5 deletions(-) > The changes look fine, > > Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
| |