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

2020-07-07 Thread Song Bao Hua (Barry Song)
avetz ; Jonathan Cameron > > Subject: Re: [PATCH v2] mm/hugetlb: avoid hardcoding while checking if cma > is enable > > On Mon, Jul 06, 2020 at 08:36:31PM -0700, Roman Gushchin wrote: > > On Tue, Jul 07, 2020 at 03:11:56PM +1200, Barry Song wrote: > > > hugetlb_

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

2020-07-07 Thread Mike Rapoport
On Mon, Jul 06, 2020 at 08:36:31PM -0700, Roman Gushchin wrote: > On Tue, Jul 07, 2020 at 03:11:56PM +1200, Barry Song wrote: > > hugetlb_cma[0] can be NULL due to various reasons, for example, node0 has > > no memory. so NULL hugetlb_cma[0] doesn't necessarily mean cma is not > > enabled.

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

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