Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1714982imm; Thu, 19 Jul 2018 06:47:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfKbPxHFSWXf5oTLCKok8ZM1mUSfUSFBxevMMcCyzafgStxbOikCyFEtZ1JyFMSmvUw6vLN X-Received: by 2002:a65:6143:: with SMTP id o3-v6mr10403769pgv.52.1532008055861; Thu, 19 Jul 2018 06:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532008055; cv=none; d=google.com; s=arc-20160816; b=OV4cw/tJC0qidXHRd8N7PwW314KxuWsWgfO8tCPJdXYyaUTaJnjdgiQRIO83YvMuQj nUiDIkxcL4kE/ozVD541n+Rrejn1zcRSVUTrC0HOKwLq4xdqSJFLMc49lYYZBsSbo3qJ ufXnH6Tfmn0pRKvV9Ok/aAdpJ572e2Wt8QGFngQep52lEFXhlowrI3ItQOZSG1r1m64B yURvqTVeoILn6U8JCQHSorhZuecCgcStKpFxQED3X+tQrtlto3epHNlJYtxJMsJhk60v inlA0kWamadZGqbRVV27UEbl8g01V64Wv+xMn9qR3rP/IM+lKLERjkBfaxUPSWc3PjiJ Dy0g== 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:dkim-signature :arc-authentication-results; bh=XzyHsA7w88h4ckWQ+QShqrIDGfNkDBan+8BHWC71/5g=; b=X9bopzJs1iabhhpgEh/JXeGYLG/LfTz/SdBPR1hZjc6Nt1pdR8ql7qF7AXM0uWdBuj e9uafUs+oy28W7WlqswC8cW+llzaAYSnm2GvYEMGEa6xm8a3X5mHxuNS6BVc4+saPxss z7+w488F4gJM0kwxMu3e9qcRXKy1xnvG6imyh5HOfA9GhGM4YNamSM6yck1gSNwUi2Fb v8EMD/YNRVkagX2KDq6hkxebkJmtcxQtEMAbkeF7N4gIeV3h/Gm7BlcyU3AUZLYkKShh zad25MR+E9PiK8foRuFzx07GoVZx8mG7wlPgZak2clkrpNe/dMrCkjIprnhmvgIvGSVE BfVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=r2mMhVFm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2-v6si6221886pff.117.2018.07.19.06.46.57; Thu, 19 Jul 2018 06:47:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=r2mMhVFm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731658AbeGSO1l (ORCPT + 99 others); Thu, 19 Jul 2018 10:27:41 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36118 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730470AbeGSO1k (ORCPT ); Thu, 19 Jul 2018 10:27:40 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6JDdJHV013395; Thu, 19 Jul 2018 13:44:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=XzyHsA7w88h4ckWQ+QShqrIDGfNkDBan+8BHWC71/5g=; b=r2mMhVFm/Gx3Z0YW0cwhmdModE189DHBRRearXY6EWkI/lFW0KIjZ916SFIA6Aqs1WxY llQ8fqee+P9URH64eEtgEIKAGLtSIgj7ViOUv/gOXgB78L4k/8W1CvFvROqtp3opKP3t Lk1KHT7jXir3BJu1hRWWOsR+RUVMpzupzC1Vn+YaRcw+zs+kLfGNXIm2JD1w/cy5HKJ2 u0T6g/uwozarOwGBdZELyfw/Yv7W8ggfi3vQENOGreYOkOVzbR5Ys9dAytk7UbS14hGy C+aORWBBfXo/LEdwsvvi+8GBGjVylfXUZlP9me+lJCR0IDgy5mKSwi1IEE5bAGUl08D2 Dw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2k9yjx760g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jul 2018 13:44:14 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6JDiCwY025728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 19 Jul 2018 13:44:12 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6JDiBXw001100; Thu, 19 Jul 2018 13:44:11 GMT Received: from [192.168.1.10] (/73.69.118.222) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 19 Jul 2018 06:44:11 -0700 Subject: Re: [PATCH v2 2/5] mm: access zone->node via zone_to_nid() and zone_set_nid() To: Michal Hocko , osalvador@techadventures.net Cc: akpm@linux-foundation.org, vbabka@suse.cz, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Oscar Salvador References: <20180719132740.32743-1-osalvador@techadventures.net> <20180719132740.32743-3-osalvador@techadventures.net> <20180719134018.GB7193@dhcp22.suse.cz> From: Pavel Tatashin Message-ID: <760195c6-7cfb-76db-1c5c-b85456f3a4ad@oracle.com> Date: Thu, 19 Jul 2018 09:44:09 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180719134018.GB7193@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8958 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=939 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807190147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/19/2018 09:40 AM, Michal Hocko wrote: > On Thu 19-07-18 15:27:37, osalvador@techadventures.net wrote: >> From: Pavel Tatashin >> >> zone->node is configured only when CONFIG_NUMA=y, so it is a good idea to >> have inline functions to access this field in order to avoid ifdef's in >> c files. > > Is this a manual find & replace or did you use some scripts? I used opengrok: http://src.illumos.org/source/search?q=%22zone-%3Enode%22&defs=&refs=&path=&hist=&project=linux-master http://src.illumos.org/source/search?q=%22z-%3Enode%22&defs=&refs=&path=&hist=&project=linux-master > > The change makes sense, but I haven't checked that all the places are > replaced properly. If not we can replace them later. > >> Signed-off-by: Pavel Tatashin >> Signed-off-by: Oscar Salvador >> Reviewed-by: Oscar Salvador > > Acked-by: Michal Hocko Thank you, Pavel