Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1501339ybb; Fri, 29 Mar 2019 05:56:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxv3tMz+NYMqqnYno8TsY6iIWqYGFKgOoh4H5bb7e5s7XedILraJoCjJbPrJnlbJ/1e1cyQ X-Received: by 2002:a17:902:f08a:: with SMTP id go10mr35183019plb.121.1553864168576; Fri, 29 Mar 2019 05:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553864168; cv=none; d=google.com; s=arc-20160816; b=d6AiiaRJNHHJkrU7vitz9C5g8q4/OinMQiXihA7Y9TpnpTYlyTnxA6QbKGfv5GvMfy qSzDIzHOFG0VKfTHMHm7kloK+WvKofbqyKn7NoOQvx2G5STjwkvX+abLvQg2M1DeAjn6 Rqqo6nrmZH/9wtBlgvc6OkrFUgaBsAdkExV972w93Kcvv4i5p8eEMg8gYoSX0jOz3gQM RAWmP0iaw9IxD9miJklPErfdodlXZ0gyicyMYREhRUxChhwnh+y/LKzIiNrT3XFOLTUn OGrgkt0hLKu6JcfPw1fXJwMWYHguNZ9yh1gaK4cUkjbjfHMKfntNWRdYi9HzPapRQRK3 YsAA== 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; bh=gnl65CNHwgR2Gn1TqF5oif7rObVnKP8B6Yw8gcVz3XQ=; b=YncGvfAyyvtq45tgwS1B9PmpFLK+k6zLnYBn9uwTMOnxsmFVI0qmuMQh7MeWfhcny9 ruKBMypX7pkusddG8jDHHowth7MOJYAlTMZ2WLmnKzlUHufhpCrFKDJFHm5LLIi19ooC 5ZY7kg5q5enhU6ws4w+gFNF+FTZz1SL5gEJwk2PWfjrZGBYrBjxSWsrWjNiEjxUePvqs /VD0LDZ7dD2IZcXAP08GCB0NZJyZbQvu/03Mni2mnXk9e5IFMT2tCrwe5zEgOV6LCr1M XVNilU3Cu8Gb8fC4NZh73lNyG6pO5Y/amaa+9CIfKniiq7bdOkIcmyuKQCqfRqXaedrx knvQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i37si1836304pgb.436.2019.03.29.05.55.50; Fri, 29 Mar 2019 05:56:08 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729536AbfC2MzN (ORCPT + 99 others); Fri, 29 Mar 2019 08:55:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57382 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729464AbfC2MzN (ORCPT ); Fri, 29 Mar 2019 08:55:13 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CA3CB80E5D; Fri, 29 Mar 2019 12:55:12 +0000 (UTC) Received: from localhost (ovpn-12-24.pek2.redhat.com [10.72.12.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 345D46B48A; Fri, 29 Mar 2019 12:55:06 +0000 (UTC) Date: Fri, 29 Mar 2019 20:55:03 +0800 From: Baoquan He To: Oscar Salvador Cc: Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org, rafael@kernel.org, akpm@linux-foundation.org, rppt@linux.ibm.com, willy@infradead.org, fanc.fnst@cn.fujitsu.com Subject: Re: [PATCH v3 2/2] drivers/base/memory.c: Rename the misleading parameter Message-ID: <20190329125503.GK7627@MiWiFi-R3L-srv> References: <20190329082915.19763-1-bhe@redhat.com> <20190329082915.19763-2-bhe@redhat.com> <20190329091325.GD28616@dhcp22.suse.cz> <20190329093725.blpcyane33fnxvn7@d104.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190329093725.blpcyane33fnxvn7@d104.suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 29 Mar 2019 12:55:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/29/19 at 10:37am, Oscar Salvador wrote: > On Fri, Mar 29, 2019 at 10:13:25AM +0100, Michal Hocko wrote: > > On Fri 29-03-19 16:29:15, Baoquan He wrote: > > > The input parameter 'phys_index' of memory_block_action() is actually > > > the section number, but not the phys_index of memory_block. Fix it. > > > > I have tried to explain that the naming is mostly a relict from the past > > than really a misleading name http://lkml.kernel.org/r/20190326093315.GL28406@dhcp22.suse.cz > > Maybe it would be good to reflect that in the changelog > > I think that phys_device variable in remove_memory_section() is also a relict > from the past, and it is no longer used. > Neither node_id variable is used. > Actually, unregister_memory_section() sets those two to 0 no matter what. > > Since we are cleaning up, I wonder if we can go a bit further and we can get > rid of that as well. Yes, certainly. I would like to post a new one to carry this.