From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Lameter Subject: Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support Date: Fri, 13 Oct 2017 10:14:16 -0500 (CDT) Message-ID: References: <21f1ec96-2822-1189-1c95-79a2bb491571@oracle.com> <20171012014611.18725-1-mike.kravetz@oracle.com> <20171012014611.18725-4-mike.kravetz@oracle.com> <5ea60591-c9b5-6520-6292-7a4d6fd04b5f@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <5ea60591-c9b5-6520-6292-7a4d6fd04b5f@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org To: Anshuman Khandual Cc: Mike Kravetz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Marek Szyprowski , Michal Nazarewicz , "Aneesh Kumar K . V" , Joonsoo Kim , Guy Shattah , Laura Abbott , Vlastimil Babka List-Id: linux-mm.kvack.org On Thu, 12 Oct 2017, Anshuman Khandual wrote: > > +static long __alloc_vma_contig_range(struct vm_area_struct *vma) > > +{ > > + gfp_t gfp = GFP_HIGHUSER | __GFP_ZERO; > > Would it be GFP_HIGHUSER_MOVABLE instead ? Why __GFP_ZERO ? If its > coming from Buddy, every thing should have already been zeroed out > in there. Am I missing something ? Contiguous pages cannot and should not be moved. They will no longer be contiguous then. Also the page migration code cannot handle this case.