Re: [PATCH 1/4] hugetlb: Dedup the code to add a new file_region

2021-02-03 Thread Miaohe Lin
Hi: On 2021/2/4 5:08, Peter Xu wrote: > Introduce hugetlb_resv_map_add() helper to add a new file_region rather than > duplication the similar code twice in add_reservation_in_range(). > This cleanup is also in my plan. But I was too sluggish to do this. Many thanks for doing this. Reviewed-by:

Re: [PATCH 1/4] hugetlb: Dedup the code to add a new file_region

2021-02-03 Thread Mike Kravetz
On 2/3/21 1:08 PM, Peter Xu wrote: > Introduce hugetlb_resv_map_add() helper to add a new file_region rather than > duplication the similar code twice in add_reservation_in_range(). > > Signed-off-by: Peter Xu > --- > mm/hugetlb.c | 51 +++ > 1 fil

[PATCH 1/4] hugetlb: Dedup the code to add a new file_region

2021-02-03 Thread Peter Xu
Introduce hugetlb_resv_map_add() helper to add a new file_region rather than duplication the similar code twice in add_reservation_in_range(). Signed-off-by: Peter Xu --- mm/hugetlb.c | 51 +++ 1 file changed, 27 insertions(+), 24 deletions(-) dif