Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp659165imm; Thu, 26 Jul 2018 09:45:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdN7QTa+3iyvDMNeMmgWJ7w7TQbAB2FJmAAfbckQ3zi4ts7enGGlXJW9y3lGQSG7Ri+Qvi9 X-Received: by 2002:a62:a6db:: with SMTP id r88-v6mr2904442pfl.60.1532623522783; Thu, 26 Jul 2018 09:45:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532623522; cv=none; d=google.com; s=arc-20160816; b=auZuwJTnd2Nk3iQcM5oHRZxftY2ESiI5qyjPoKub5ZW3hTSGDIzAuqpRoR9BXHFhRf +XcfBXYMV8jJaxXsfSAiNZHvoe3vdqCplEw0GhdCTpw5fEYJOwlBVoB0rn4zoXXK8R/i zxyi8eMC/zSRzYPqfNAHGSekDeJog6GE6zXleENeW5Bx3n9U376EO/JAoNTQN6g4gn3/ 8NT/aaClRdPXY/7QlsHbjR6fBZA2zfNnM6Pl0wBIq6jtJvvQEJAUT5uR/i4Ity3WK4Kl 45Jfp3S7I6zNMEOAzgQrdz46t37wDtqrpF/x3GlEg3dcIB4vsOLIap7/uRnSmSJt24yw 1B2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=BsQbW2gEYiCwElJiZgJPoU/QKtlqZfQGs7z7yaaFEf0=; b=IWacLVxa4dLQcChdrxOEJ9J3hdhAUhIEWD3wVH8Y4mFQG7r+/e46eAmtCF2rGLiCkf DCaRQOZXDKdpHr5hJfcn+i30jbi8uSJzME0yo3UEI2TXjdCUIkB3owIzC/kfI+w8OnWi aJne8duxWltBKx2JkWd8kD39CPln1L4XcpBVNvvEom32kKHZKU9hACGcqjv/JZZM2Fhr xQEhKOFElkF6pp7Mp/y1cSFsWLCCdkHRBDOGt6LbBiay6Pj0qaahg9hFQ1Bql6Bp/C9Y sAlMMvut5AG4Y5uEWmSCxzf8o7dwJEtxNTMlZ+AsxfgOf0G9AJ43SbYwxs+7Ztj2MZQO b5gA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11-v6si1490528plg.344.2018.07.26.09.45.07; Thu, 26 Jul 2018 09:45:22 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388473AbeGZSAq (ORCPT + 99 others); Thu, 26 Jul 2018 14:00:46 -0400 Received: from mx2.suse.de ([195.135.220.15]:52174 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730197AbeGZSAq (ORCPT ); Thu, 26 Jul 2018 14:00:46 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 28724AE06; Thu, 26 Jul 2018 16:43:07 +0000 (UTC) Date: Thu, 26 Jul 2018 18:43:04 +0200 From: Michal Hocko To: Pavel Tatashin Cc: Oscar Salvador , akpm@linux-foundation.org, vbabka@suse.cz, mgorman@techsingularity.net, aaron.lu@intel.com, iamjoonsoo.kim@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, Oscar Salvador Subject: Re: [PATCH v3 2/5] mm: access zone->node via zone_to_nid() and zone_set_nid() Message-ID: <20180726164304.GP28386@dhcp22.suse.cz> References: <20180725220144.11531-1-osalvador@techadventures.net> <20180725220144.11531-3-osalvador@techadventures.net> <20180726080500.GX28386@dhcp22.suse.cz> <20180726081215.GC22028@techadventures.net> <20180726151420.uigttpoclcka6h4h@xakep.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180726151420.uigttpoclcka6h4h@xakep.localdomain> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 26-07-18 11:14:20, Pavel Tatashin wrote: > Hi Oscar, > > Below is updated patch, with comment about OpenGrok and Acked-by Michal added. > > Thank you, > Pavel > > >From cca1b083d78d0ff99cce6dfaf12f6380d76390c7 Mon Sep 17 00:00:00 2001 > From: Pavel Tatashin > Date: Thu, 26 Jul 2018 00:01:41 +0200 > Subject: [PATCH] mm: access zone->node via zone_to_nid() and zone_set_nid() > > 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. > > OpenGrok was used to find places where zone->node is accessed. A public one > is available here: http://src.illumos.org/source/ I assume that tool uses some pattern matching or similar so steps to use the tool to get your results would be more helpful. This is basically the same thing as coccinelle generated patches. -- Michal Hocko SUSE Labs