Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp587881ybm; Wed, 27 May 2020 03:06:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5j3V8RCUPKERb0VKV2QJUpJfDWZrYaCxkW2ykenTHH0uZMIbZJXOA7SThMOiMfdGrfzat X-Received: by 2002:a17:906:6a18:: with SMTP id o24mr5265450ejr.66.1590574015237; Wed, 27 May 2020 03:06:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590574015; cv=none; d=google.com; s=arc-20160816; b=GUV6+RZUF/tQqgdZXAr6RrdwpDdy18A7QcZCvD00mtK3oBQ7XNG4kUjBpwnK6OAgBJ nr8W/mx32abrWCrrtI4shbCZigW+8ZFVs/Qj/Fura6UliQHUnVDLKszxuYV5SHkvYEJc NyOX81zwK2mbNuwSKI3Zd8UA7wfu2Uun/QAfsec355GKLgVcjxp6p/KwhI89g5per69J VCvMlzd/VpsuobvDbpch3osuZwp8V2asJjMqBIX1rthLYSQmz0lnZ6h5/J2M/ENqV/AX txtVfUrHmv3nu1CdRimLpGsvlh3vIPVYcNPej9ct1kVJKDb3meJHkpldhpeD+e5FVA54 aX+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OaLeQoi5DBWLuEVOcYdoFWBz25hF1g/z6p4tBOV7AU0=; b=dKhd2gFH0bVmSrXrgTHMR7clIWPSHIe58NmqUZFYPjNlFZWQLGP9kA07oNffsRn/9x l3xRwUyksfDEk8R9pF6h7VAtqgNSaprNbX8QK05yps4281fZduQzQH+JOxbPQNjsijSR BDoml8oZkozwW41Cxh1ygbCyzg4Wbtt3mSqBNmMz0xI0YMWtiL/7wc9eiPhjp3F8oIRh 3hfr4Xi5bnuI2rV8r9/QLc78s+kIYw1KDI3yGypnj3F++2uuoJIOYwZ22q6JYEdJYvAB mIXh3a3bBdDr6x60V59fz0OhLqMkiRA42quo6wbV3zYugPRkB6qZxB/NUOZUWYsFTpdj bXyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=txx+avA2; 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 r20si1442761eja.234.2020.05.27.03.06.31; Wed, 27 May 2020 03:06:55 -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=txx+avA2; 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 S1728215AbgE0GpK (ORCPT + 99 others); Wed, 27 May 2020 02:45:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725613AbgE0GpK (ORCPT ); Wed, 27 May 2020 02:45:10 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01431C061A0F for ; Tue, 26 May 2020 23:45:10 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id x29so5165847qtv.4 for ; Tue, 26 May 2020 23:45:09 -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; bh=OaLeQoi5DBWLuEVOcYdoFWBz25hF1g/z6p4tBOV7AU0=; b=txx+avA263khYurC1QtUhLXRBgqWxtEsC1Dl81kRn4bWuq926OBSAmSb5cNaAYjTxR jlZm9b8NmKNM2kzmWMHuLcRtaQe1ZbIRkj1I49s7KkjcCMBu/oiKDKKh9tjjjGX6Ir2q VAej7lXbr4I+fH0+fbauGpE3L/8gmXeTFF0JlNqKX1mYdiuR7m54pRKL4APul6PAwz9g Lib5qdMjdd04BGynjCkS+YvFpwFilbSYpydi2J5rohuQas1j1GX5ULZriJcJtV8qEbhS AQOlpf883Jmx4LbNx4DqZtj9nQewCxUzuG+e/B5y92DbXSFoWtXn27m05qFZzZ7Dm6mZ rI7A== 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; bh=OaLeQoi5DBWLuEVOcYdoFWBz25hF1g/z6p4tBOV7AU0=; b=J1VaZQGJJi6S06PrhsS/qwWMlQG/xNKkTsGrTtKaPR167GkjKp0vArzgFWHSWX2OtY 9Hx8vZHhTrANzXlDHF1ppDLYfH6UBOI3SdGa2nl74kVOhCzHAEAC1wXDPMrzvyMP9HFf 5xbWD0cy14wLtdJTWtEyPP+dMfmH37x5v/uO7Lxrb72AhyJf0hz+73eReXJehCVqw3mV oa4lnYfPJnhgLjZdVW6lYEovkHX8+sPnLcSu9UCkjqT39hbtmBRigvJPh0LgeVTNOvaf snkdrpA5/5yRiuIcooU9niJes68iYpKSqORdhG0qBwN+DdIxAxVg+kNT1pEtX5gpB5mc PoCw== X-Gm-Message-State: AOAM532J6s7N7XhXPv81UvCcpCc4+n02SuF7mBfs4Yt48UBYXtA76DM4 H2Y1QfxvxYNMpV5ihitUHMho6lskce8p+B3gYU0= X-Received: by 2002:aed:39a2:: with SMTP id m31mr2493881qte.333.1590561909048; Tue, 26 May 2020 23:45:09 -0700 (PDT) MIME-Version: 1.0 References: <1589764857-6800-1-git-send-email-iamjoonsoo.kim@lge.com> <1589764857-6800-2-git-send-email-iamjoonsoo.kim@lge.com> <20200521003716.GA317575@carbon.dhcp.thefacebook.com> In-Reply-To: From: Joonsoo Kim Date: Wed, 27 May 2020 15:45:03 +0900 Message-ID: Subject: Re: [PATCH 01/11] mm/page_isolation: prefer the node of the source page To: Roman Gushchin Cc: Andrew Morton , Linux Memory Management List , LKML , kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Mike Kravetz , Naoya Horiguchi , Michal Hocko , Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > mm/page_isolation.c | 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > diff --git a/mm/page_isolation.c b/mm/page_isolation.c > > > index 2c11a38..7df89bd 100644 > > > --- a/mm/page_isolation.c > > > +++ b/mm/page_isolation.c > > > @@ -300,5 +300,7 @@ int test_pages_isolated(unsigned long start_pfn, unsigned long end_pfn, > > > > > > struct page *alloc_migrate_target(struct page *page, unsigned long private) > > > { > > > - return new_page_nodemask(page, numa_node_id(), &node_states[N_MEMORY]); > > > + int nid = page_to_nid(page); > > > + > > > + return new_page_nodemask(page, nid, &node_states[N_MEMORY]); > > > > Why not new_page_nodemask(page, page_to_nid(page), &node_states[N_MEMORY]) ? > > Still fits into 80 characters. > > It's just my preference not directly using function call in argument > as much as possible. > If you don't like it, I will change it as you suggested. However, > since alloc_migrate_target() > will be removed in following patch, there will be no difference in the end. Oops... I found that your suggestion exceed 80 character. I will leave the patch as it is. Thanks.