Re: [PATCH] mm/hugetlb: remove redundant reservation check condition in alloc_huge_page()

2021-02-17 Thread Miaohe Lin
Hi: On 2021/2/13 9:15, Mike Kravetz wrote: > On 2/9/21 11:54 PM, Miaohe Lin wrote: >> If there is no reservation corresponding to a vma, map_chg is always != 0, >> i.e. we can not meet the condition where a vma does not have reservation >> while map_chg = 0. > > This commit message might be

Re: [PATCH] mm/hugetlb: remove redundant reservation check condition in alloc_huge_page()

2021-02-12 Thread Mike Kravetz
On 2/9/21 11:54 PM, Miaohe Lin wrote: > If there is no reservation corresponding to a vma, map_chg is always != 0, > i.e. we can not meet the condition where a vma does not have reservation > while map_chg = 0. This commit message might be easier to understand? vma_resv_map(vma) checks if a

[PATCH] mm/hugetlb: remove redundant reservation check condition in alloc_huge_page()

2021-02-09 Thread Miaohe Lin
If there is no reservation corresponding to a vma, map_chg is always != 0, i.e. we can not meet the condition where a vma does not have reservation while map_chg = 0. Signed-off-by: Miaohe Lin --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/hugetlb.c