Re: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Roman Gushchin
linux...@kvack.org; > > linux-kernel@vger.kernel.org; Linuxarm ; Mike > > Kravetz ; Jonathan Cameron > > > > Subject: RE: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is > > reserved > > > > > > > > > -Original Message--

RE: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Song Bao Hua (Barry Song)
-foundation.org; linux...@kvack.org; > > linux-kernel@vger.kernel.org; Linuxarm ; Mike > > Kravetz ; Jonathan Cameron > > > > Subject: Re: [PATCH] mm/hugetlb: avoid hardcoding while checking if > > cma is reserved > > > > On Mon, Jul 06, 2020 at 08:44:

RE: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Song Bao Hua (Barry Song)
eron > > Subject: Re: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is > reserved > > On Mon, Jul 06, 2020 at 08:44:05PM +1200, Barry Song wrote: > > Hello, Barry! > > > hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has > > no m

Re: [PATCH] mm/hugetlb: avoid hardcoding while checking if cma is reserved

2020-07-06 Thread Roman Gushchin
On Mon, Jul 06, 2020 at 08:44:05PM +1200, Barry Song wrote: Hello, Barry! > hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has > no memory. Thus, NULL hugetlb_cma[0] doesn't necessarily mean cma is not > enabled. gigantic pages might have been reserved on other nodes.