Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp25341imm; Mon, 2 Jul 2018 07:06:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIp9mVQs/tdUiKa89rCFmkWnYByHFKGGTpa+4DrrPJ+8B+8xz3wyBfrhF60hPhhRrR6Ma/q X-Received: by 2002:a17:902:bc8c:: with SMTP id bb12-v6mr26320669plb.84.1530540366747; Mon, 02 Jul 2018 07:06:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530540366; cv=none; d=google.com; s=arc-20160816; b=XrrOXR07PyVlrv5SqBd6xKBaWXicAOt3pm2qOERt72+7BSLzuxel1NZ30YQBJYRLX+ cBYQfPUWmxEnbp9Ac/EDoqzDnluKYX66C0oPJ/jL7Qsi5AcwUpQfQreA6WY4xQuIKXWw YNrN6fwaeU1Hk/KYR4nmIegke47XKRdvk1RBdMDBcisECAG/pK/gDI51Stc2nNICH8cx mNvDHTYyFeW80xFZpHgLzlY6qBaeXBSmrdVim8AotonuaiSoYkiY+kEBRF6n4Aj/fTGy p60vzo8Iylqs8xLbB6dahnf5UOJwnaek+u0Lr6/nOcUNVpHU0VzkRgpeLUWyqxvdBrr2 RJvg== 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=917w/9gKbd1HWE1ie0Oaeh8MPaLpujVElp2JokhZBQY=; b=ORoSIkPaeVVPSg6ZFaojXa7jStsxoB/AAnXVsVUxdp2YRcL21WY+KUXWG/NRzr+v2w lf/2BBgPTZ6BvbDF+nCQfKH1Mt2g1h5OKgwtSrlTGqvb2jN3KVrwqnah+5je4eRgRijp p+MNl/GK90C6yuGLyQqNYLBwYQX1ueBXUi/idLiAz/JZ3ZWsCf4C7gK2NfK+XVkTT4oI nKRbJBl27JIZ8iYKsFv2jogA5i0oLf2W4sbF49DH9vrIxWJFP6caKuWB8h2ADEWQLQ7P MC22C4Lu0zzdW0xvT2UpFzt0kbwgE1n9ACeU4DIz7hfuFFIVLHOMjL+N5DP4D50eJ00a YJyA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21-v6si16850922pll.96.2018.07.02.07.05.44; Mon, 02 Jul 2018 07:06:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbeGBOEo (ORCPT + 99 others); Mon, 2 Jul 2018 10:04:44 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33794 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535AbeGBOEn (ORCPT ); Mon, 2 Jul 2018 10:04:43 -0400 Received: by mail-wr0-f194.google.com with SMTP id a12-v6so15702073wro.1 for ; Mon, 02 Jul 2018 07:04:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=917w/9gKbd1HWE1ie0Oaeh8MPaLpujVElp2JokhZBQY=; b=BGsAJQ9T8s2ZrMcIgsosGnbO4b85+4VC2osifHmuNyT2ZGMlOHNW35SUXSkxrmQCWg SEzCx1SqYPew4Vxep93TSvKpvqhtWfEjLiXUpSdCp8YHlEDiUavvSCKCS1/i+gMudx+R gKzdaDdBu5Bx6jJD6U6Hg+Ts93nsdEeO4LDY688qc5dm34Gy8cM6S0SuUP2YQqI6ITIU 3sVmbMZb8P4Z+2Ur0SekxN4J7sDsnK8+HIdSQtfAvzSk+5ITkRsreCp8LWW8QqFC4fJK K+fsXPNBLGbggUfrETFhHRLnb6njWSZX+NNvjS3iO8j9ZnbEJkRlPF8Hv0t42l33LD2E xn/Q== X-Gm-Message-State: APt69E2eHoSuhgw85PQWoCHvHeeLSUeyYyHsmU+baKirUJYh7nT0fV2F sTf9SdqGY324W75Dy2jlQlY= X-Received: by 2002:adf:a285:: with SMTP id s5-v6mr19104934wra.114.1530540281885; Mon, 02 Jul 2018 07:04:41 -0700 (PDT) Received: from techadventures.net (techadventures.net. [62.201.165.239]) by smtp.gmail.com with ESMTPSA id f133-v6sm8387617wme.42.2018.07.02.07.04.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jul 2018 07:04:40 -0700 (PDT) Received: by techadventures.net (Postfix, from userid 1000) id 2CFA6123A5F; Mon, 2 Jul 2018 16:04:40 +0200 (CEST) Date: Mon, 2 Jul 2018 16:04:40 +0200 From: Oscar Salvador To: Pavel Tatashin Cc: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, kirill.shutemov@linux.intel.com, mhocko@suse.com, linux-mm@kvack.org, dan.j.williams@intel.com, jack@suse.cz, jglisse@redhat.com, jrdr.linux@gmail.com, bhe@redhat.com, gregkh@linuxfoundation.org, vbabka@suse.cz, richard.weiyang@gmail.com, dave.hansen@intel.com, rientjes@google.com, mingo@kernel.org Subject: Re: [PATCH v3 2/2] mm/sparse: start using sparse_init_nid(), and remove old code Message-ID: <20180702140440.GA10207@techadventures.net> References: <20180702020417.21281-1-pasha.tatashin@oracle.com> <20180702020417.21281-3-pasha.tatashin@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180702020417.21281-3-pasha.tatashin@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 01, 2018 at 10:04:17PM -0400, Pavel Tatashin wrote: > Change sprase_init() to only find the pnum ranges that belong to a specific > node and call sprase_init_nid() for that range from sparse_init(). > > Delete all the code that became obsolete with this change. > > Signed-off-by: Pavel Tatashin This looks like an improvement to me. It also makes the code much easier to follow and to understand. Reviewed-by: Oscar Salvador -- Oscar Salvador SUSE L3