Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755603AbcCWOiX (ORCPT ); Wed, 23 Mar 2016 10:38:23 -0400 Received: from mx2.suse.de ([195.135.220.15]:33667 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751610AbcCWOiV (ORCPT ); Wed, 23 Mar 2016 10:38:21 -0400 Subject: Re: [PATCH 2/6] mm/hugetlb: add same zone check in pfn_range_valid_gigantic() To: js1304@gmail.com, Andrew Morton References: <1457940697-2278-1-git-send-email-iamjoonsoo.kim@lge.com> <1457940697-2278-3-git-send-email-iamjoonsoo.kim@lge.com> Cc: Rik van Riel , Johannes Weiner , Mel Gorman , Laura Abbott , Minchan Kim , Marek Szyprowski , Michal Nazarewicz , "Aneesh Kumar K.V" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Joonsoo Kim From: Vlastimil Babka Message-ID: <56F2AA59.9060208@suse.cz> Date: Wed, 23 Mar 2016 15:38:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: <1457940697-2278-3-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 384 Lines: 10 On 03/14/2016 08:31 AM, js1304@gmail.com wrote: > From: Joonsoo Kim > > alloc_gigantic_page() uses alloc_contig_range() and this > requires that requested range is in a single zone. To satisfy > that requirement, add this check to pfn_range_valid_gigantic(). > > Signed-off-by: Joonsoo Kim Acked-by: Vlastimil Babka