Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp176278ybg; Tue, 9 Jun 2020 20:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwX15AIePBGGhNUsKpYzxc5HjaGeEDiutK/KeqZVIkiCCNHAwCf147lbdRT7Kl2tuTKVC18 X-Received: by 2002:a17:907:20db:: with SMTP id qq27mr1370337ejb.232.1591758888664; Tue, 09 Jun 2020 20:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591758888; cv=none; d=google.com; s=arc-20160816; b=So8DXZCI01RWdozqJHI0MOJ3+DBPhm4mhn6QT8o1IoMxxe5XtgVv1yX1uXBkOozM1T ADgjkHZm2aayW4RUOMsVDEkuBhN4VsPrP+n484WTVlQ7tv/G0ef2WT5CaHxUX6YjOrqB TB4X1pvO7C8jjzzaEI+sHcQFLd6gD/T7M6G3JaCYzq15gO4PN+jEpzXPql3U+Ozs6QLM gMD1L2mU1xX6tKJYO6Q9zVSNBXnGmTAd4LJ4jhKevQIuhFp/wsmIvD2eVZcrVgnQvMZ3 HZGwvxsAhP3tvZIHcstsHQ6Lit4ZmmjIjQ3TVfwWkQ+x8OWJt90Z++7SIVsYrQZf4hsR LYuQ== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=PCGE0i5jShj8XCDSt3k7yuWmEi5dY5Ug2+/GmDjxlYg=; b=Wn+5iA9ZLPngif7pIiWrElwLCxVvEeq+O4RksWcyJiSzZsSmdEu1YgcObvcoN18zFt JhuOqCkCAgNlEHyx7/uEr0aVPSJmYb/O5cQXqUDPy20MyZWnmRHHSzOfthAktvwhsCt8 I8R75gab6iZGnUDUuqJhjurEUtKSwFoLdNhTFQFY/3vnp+qeQJQtGZ6b2cjKslsnK7S0 qwzKLYrx9DaILtb6C3QalxZrjuw8fbaLzxNVX4GEYeGXnN0u4AJ1LLuWw4knlunH3M7W Bw7xZfsD2L+v37WUljyCUVRbEd4+d9WMrtbsJIGWvATvMUEZ2H4ccK6iPJnIjJeuhl7d DdLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fRVONKp+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w22si7233347edv.31.2020.06.09.20.14.22; Tue, 09 Jun 2020 20:14:48 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fRVONKp+; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726085AbgFJDLv (ORCPT + 99 others); Tue, 9 Jun 2020 23:11:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbgFJDLu (ORCPT ); Tue, 9 Jun 2020 23:11:50 -0400 Received: from mail-qv1-xf41.google.com (mail-qv1-xf41.google.com [IPv6:2607:f8b0:4864:20::f41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B0B9C05BD1E for ; Tue, 9 Jun 2020 20:11:50 -0700 (PDT) Received: by mail-qv1-xf41.google.com with SMTP id e2so409019qvw.7 for ; Tue, 09 Jun 2020 20:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=PCGE0i5jShj8XCDSt3k7yuWmEi5dY5Ug2+/GmDjxlYg=; b=fRVONKp+S7uG//pRPspo5Nrf6ifu8rHa/DU2rAa4lAHzRZGIe/nDBoa8miLk7F6Icc VEVIk+U45HDrEklck8Ov0E4Y5iQEzvA8bfRjmMvRusZWQnJjJmcoAKUa78MkOm0XoTwY QVrUP8RIVEyXgf4KrBLCirjjMlJJgCmDHwKfI35ATFvI3Xz4VbUbYepbO5Lzjjv4nXao oMFd38agVxpYwuoMJKajIs81MFDfLavTEx3UJ2sV8TOL0EexI7p5jqzMpgFC4het1G8e 3/bQpoAQG10F6WnkKbpwi1Mc3+Y49jUaFNFElZdQ8PE8EKwvFQuBjnMOM4iRb99bFLL8 GGqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=PCGE0i5jShj8XCDSt3k7yuWmEi5dY5Ug2+/GmDjxlYg=; b=m01cdefD8HZpz5xF6ZfvyPnMa5bxGSD//B7k4EIj+ItOnW4E5fa9flpAWzvcustBF3 d0BorbG3izzqEnFcfMLerTHLtvN+RVS5rA6wrOP89SKCTXM/y/OwInPOodG3FKJHaSOR QgCN3P5Ye+tpWJWIvLyVCPwMrxEMyphcIAOOxEw81hTIR/gIRpAG5DgQV6qnMUmS3BUp 4tNbJB/amhE/bcDsXyIyx8e+scpX67WMy+OARQtm0yQLjphR1ruFlKuHsYeF79notfJ+ vy3VW7CSHkYqD9jnPGYZ/vmhdb7uWN0ibxoI9IgHfNIvC5aH+U+Xg5qj+6LsesnDtKUr cC6w== X-Gm-Message-State: AOAM530Dgoweh+RNgaz6rxePD5/rVhacf4uB8uaNv2bFSC6ak5FpIyT6 2eWgY3ZtXqQTm7+5ZXkZjZOLzlmXc0uBwUyoHwM= X-Received: by 2002:ad4:4d04:: with SMTP id l4mr1277779qvl.88.1591758709588; Tue, 09 Jun 2020 20:11:49 -0700 (PDT) MIME-Version: 1.0 References: <1590561903-13186-1-git-send-email-iamjoonsoo.kim@lge.com> <1590561903-13186-6-git-send-email-iamjoonsoo.kim@lge.com> <20200609134309.GG22623@dhcp22.suse.cz> In-Reply-To: <20200609134309.GG22623@dhcp22.suse.cz> From: Joonsoo Kim Date: Wed, 10 Jun 2020 12:11:35 +0900 Message-ID: Subject: Re: [PATCH v2 05/12] mm/hugetlb: unify hugetlb migration callback function To: Michal Hocko Cc: Andrew Morton , Linux Memory Management List , LKML , kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 6=EC=9B=94 9=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 10:43, M= ichal Hocko =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Wed 27-05-20 15:44:56, Joonsoo Kim wrote: > [...] > > -/* page migration callback function */ > > struct page *alloc_huge_page_nodemask(struct hstate *h, > > struct alloc_control *ac) > > { > > ac->gfp_mask |=3D htlb_alloc_mask(h); > > + if (ac->nid =3D=3D NUMA_NO_NODE) > > + ac->gfp_mask &=3D ~__GFP_THISNODE; > > Is this really needed? alloc_huge_page_node is currently only called > from numa migration code and the target node should be always defined. Thanks! When I read the code, I was not sure that the target node is always defined so I left this code. However, if it's true, this code isn't needed at all. I will consider your suggestion in the next version. Thanks.