Messages in this thread | | | Subject | Re: [Patch v4 7/7] mm/hugetlb: take the free hpage during the iteration directly | From | Mike Kravetz <> | Date | Tue, 1 Sep 2020 14:05:00 -0700 |
| |
On 8/31/20 6:46 PM, Wei Yang wrote: > Function dequeue_huge_page_node_exact() iterates the free list and > return the first valid free hpage. > > Instead of break and check the loop variant, we could return in the loop > directly. This could reduce some redundant check. > > Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Thank you!
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
-- Mike Kravetz
| |