Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp137320ybh; Tue, 17 Mar 2020 19:50:26 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvaM241aU/jMHTq8WZckrng8F3Gcn7rRDZXX10WECBdOFbnsqxAQ0dV3FvxwwqkGCkDbreX X-Received: by 2002:aca:c506:: with SMTP id v6mr1615854oif.26.1584499825657; Tue, 17 Mar 2020 19:50:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584499825; cv=none; d=google.com; s=arc-20160816; b=DW1MbgoxEkjqYBb10H2qaWQruGnyy3SxGt15VgQBMl/8RLWbbk4EoPSPK4l2nYmJLH 8m5aZFraM+Lk8EnQmtIX1RCn+g8l3+2oy6Xe4DFSQ4tOiLQp9I1zKDOZD36HOO6/91Cl V4SvJPFtYeTVKJ44r8hMPcwoxMJfxr0IBI9jV5VNSYnutbf7yl8lbY2IeFDDEuj20GAQ +sbfj1P3YfhSmgal6Mij0xVuU45xmD5Xli7SrcH862pY2JsPNDgDx63i6cdfInbaK1hA RC/xJA/9hxNq7iK1RxAh8A2XqX031/dbb+qe/mmCX0H99sQ1kIpmUAz3w7hhPsEyDa8/ 2bJw== 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:dkim-signature; bh=gFq/oyp7WPPv1SjVdPo1z9wGSo67RbSVgYjJA/hOaFE=; b=GljDw7ZqIRYS2HSWArFyGixp+heNXWPE1kKcuJO8R7gAwzELVNGqMeLh1k+Z+XxUki krLh9vt+FFwzkzAeZc1hYd680/lwatlYTZo52dIk8rrUupwbB1Q3PQyWa3z2jj3ztI/y cvb4aiq0uVoGXTlsbi4tsSwv4LUHp/kOl7rITCW49rJAgxvN+Q5k5mrTWXUM93cVulLQ eor+Y/p38ZZX/GFNsFj15dOMj97DnepS3k8pDXS2L57ZxxVN3+8HDuuHWKOC4HXl9hq0 Rn2805WC/of31aIh6epwHZFn0qSmV4gOKI21QpYA1LgVrq45/FPdEc8xFgAkye+SnVfL W6SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RuYo0TaR; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si2511821oii.195.2020.03.17.19.50.13; Tue, 17 Mar 2020 19:50:25 -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=@redhat.com header.s=mimecast20190719 header.b=RuYo0TaR; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726726AbgCRCty (ORCPT + 99 others); Tue, 17 Mar 2020 22:49:54 -0400 Received: from us-smtp-delivery-74.mimecast.com ([63.128.21.74]:48268 "EHLO us-smtp-delivery-74.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbgCRCty (ORCPT ); Tue, 17 Mar 2020 22:49:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584499793; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=gFq/oyp7WPPv1SjVdPo1z9wGSo67RbSVgYjJA/hOaFE=; b=RuYo0TaR1m856MYSuGjRO0FneesgbUT9m4iro0Re6+xOrghspzXS3ZTKmG5YOuB6dOkiQw txARBlgfzZ4ibbxxYMQ4gEEP5U+PDPgnrpfO/eF0Avfo0UwYXExZWnYf9mJKNegVsrxGdn WeiOur7RKy6LPp/TYetfwiL3F+D08io= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-492-_53wWppWNlm6j-eLR6iu_g-1; Tue, 17 Mar 2020 22:49:48 -0400 X-MC-Unique: _53wWppWNlm6j-eLR6iu_g-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7493218A5513; Wed, 18 Mar 2020 02:49:47 +0000 (UTC) Received: from localhost (ovpn-12-66.pek2.redhat.com [10.72.12.66]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6A52260BF1; Wed, 18 Mar 2020 02:49:44 +0000 (UTC) Date: Wed, 18 Mar 2020 10:49:42 +0800 From: Baoquan He To: Borislav Petkov , akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org Subject: Re: [tip: x86/mm] x86/mm: Remove the now redundant N_MEMORY check Message-ID: <20200318024942.GA30899@MiWiFi-R3L-srv> References: <20200311011823.27740-1-bhe@redhat.com> <158446925404.28353.8374899643384906431.tip-bot2@tip-bot2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <158446925404.28353.8374899643384906431.tip-bot2@tip-bot2> User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 03/17/20 at 06:20pm, tip-bot2 for Baoquan He wrote: > The following commit has been merged into the x86/mm branch of tip: > > Commit-ID: aa61ee7b9ee3cb84c0d3a842b0d17937bf024c46 > Gitweb: https://git.kernel.org/tip/aa61ee7b9ee3cb84c0d3a842b0d17937bf024c46 > Author: Baoquan He > AuthorDate: Wed, 11 Mar 2020 09:18:23 +08:00 > Committer: Borislav Petkov > CommitterDate: Tue, 17 Mar 2020 19:12:39 +01:00 Just a soft reminder, I also got a notice from Andrew that this was picked into his -mm tree before. Maybe one can be dropped to avoid conflict when sending to Linus. Thanks for taking care of this. > > x86/mm: Remove the now redundant N_MEMORY check > > In commit > > f70029bbaacb ("mm, memory_hotplug: drop CONFIG_MOVABLE_NODE") > > the dependency on CONFIG_MOVABLE_NODE was removed for N_MEMORY. > Before, CONFIG_HIGHMEM && !CONFIG_MOVABLE_NODE could make (N_MEMORY == > N_NORMAL_MEMORY) be true. > > After that commit, N_MEMORY cannot be equal to N_NORMAL_MEMORY. So the > conditional check in paging_init() is not needed anymore, remove it. > > [ bp: Massage. ] > > Signed-off-by: Baoquan He > Signed-off-by: Borislav Petkov > Reviewed-by: Wei Yang > Acked-by: Michal Hocko > Link: https://lkml.kernel.org/r/20200311011823.27740-1-bhe@redhat.com > --- > arch/x86/mm/init_64.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c > index abbdecb..0a14711 100644 > --- a/arch/x86/mm/init_64.c > +++ b/arch/x86/mm/init_64.c > @@ -818,8 +818,7 @@ void __init paging_init(void) > * will not set it back. > */ > node_clear_state(0, N_MEMORY); > - if (N_MEMORY != N_NORMAL_MEMORY) > - node_clear_state(0, N_NORMAL_MEMORY); > + node_clear_state(0, N_NORMAL_MEMORY); > > zone_sizes_init(); > } >