Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp940935ybt; Tue, 7 Jul 2020 04:06:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeBgs7G6mrci+XSPjjiwTn82sgUvkfAKYNG1rICK0XHTCfz/Q2dryB4oNfb8SWN0ORvuCo X-Received: by 2002:a17:906:35cd:: with SMTP id p13mr46619138ejb.172.1594119990810; Tue, 07 Jul 2020 04:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594119990; cv=none; d=google.com; s=arc-20160816; b=XR0QYrDhbUtcEQCoGXYvyObZWrMuN50fn+FRtQasEBLWOe/caFdVX3MmZgUCus0L9c v/vpuzSlnmAU2VG3HN1YlA3DJdHP3ThK6VIKx5/o9GLeyWV7i0aT+dJagmsqSg7eESzT lWtnZMJAwi/a+kVJm7E9UL5gIs8wdUdJetOmQ18omVi8pSIigCVNYijV/DFB5cZEju1O 46hHh+Id+tVbm1kwkIg7q1yMV7ieQoZh08DO108FnXcF5ZT6nOyXIN0sF5xTPzorAJTw VF/UgaGyT31OmZ1FTceaNMl1WpNEDaQawSO1ZXzQ6APQCApLabJuehkYTlMFeU7LgpEu ahWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=ubTgGAB80Psp13fXZxJWwTOst1kyaVD1nPyO8fgI9IA=; b=VrV1pl1Ty6e1Ys8ixskeOWGgW86fFJ/oO4WsZEgLmPfKQAs/D8UwZn006Th2QL9ezI madAN6LuHVKy3YZeV7LNYLK2QAmmu3Do8Ddx5w6sTcPJ5GzohDZ+3gGG8cok3hW7pvFJ Y8DmfdFkQyrhtDGWFCdjBc30R96XCrLhOHibWydNmbQUAd+HFihxua+hhXPaUQDTnZup KG6EHnJzxLgNy+W0U+PhiR5p+P8mofuTrSEqDXkHup13HOF8VlCtlYTe1FhOdhV70oNV ZudvgKjFtmHFvGcypAnb35cE7UC6waELEdjlq4abUk8gLw+QHzHNCB9+qD1zDTXSKtC2 d60Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 94si14649497eda.384.2020.07.07.04.06.06; Tue, 07 Jul 2020 04:06:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727945AbgGGLFe (ORCPT + 99 others); Tue, 7 Jul 2020 07:05:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:48464 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbgGGLFe (ORCPT ); Tue, 7 Jul 2020 07:05:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id DCDC2AE07; Tue, 7 Jul 2020 11:05:33 +0000 (UTC) Subject: Re: [PATCH v4 03/11] mm/hugetlb: unify migration callbacks To: js1304@gmail.com, Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Michal Hocko , Joonsoo Kim References: <1594107889-32228-1-git-send-email-iamjoonsoo.kim@lge.com> <1594107889-32228-4-git-send-email-iamjoonsoo.kim@lge.com> From: Vlastimil Babka Message-ID: Date: Tue, 7 Jul 2020 13:05:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <1594107889-32228-4-git-send-email-iamjoonsoo.kim@lge.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/7/20 9:44 AM, js1304@gmail.com wrote: > From: Joonsoo Kim > > There is no difference between two migration callback functions, > alloc_huge_page_node() and alloc_huge_page_nodemask(), except > __GFP_THISNODE handling. It's redundant to have two almost similar > functions in order to handle this flag. So, this patch tries to > remove one by introducing a new argument, gfp_mask, to > alloc_huge_page_nodemask(). > > After introducing gfp_mask argument, it's caller's job to provide correct > gfp_mask. So, every callsites for alloc_huge_page_nodemask() are changed > to provide gfp_mask. > > Note that it's safe to remove a node id check in alloc_huge_page_node() > since there is no caller passing NUMA_NO_NODE as a node id. > > Reviewed-by: Mike Kravetz > Signed-off-by: Joonsoo Kim Yeah, this version looks very good :) Reviewed-by: Vlastimil Babka Thanks!