Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp4056160ybh; Tue, 17 Mar 2020 11:22:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtvZEjzmb55+BbeTEzLTBwDJ7keHk7B33/wKIOwcegz54opVpTinvji4O1Yuygba+TvnWx4 X-Received: by 2002:a9d:d27:: with SMTP id 36mr529953oti.230.1584469367597; Tue, 17 Mar 2020 11:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584469367; cv=none; d=google.com; s=arc-20160816; b=DppzWor2YArfEbLHFU2lfeno9BZnqenGA9/PkMQH+Vo+Z4PARKiAAWiyR9iIR3ZBmw YLGVZHjxp2A6U6wA7Q3KPHg75ffRQBnOosny8YaPffOKD14exwxzpo5sxspv3jh+edPt P+QgXXxOl2We8fHcNiOlXvh0IISxLc01uxcxtlneXKvCODyQGCGgQKvY+eKrynXnMyTb MyQ3zzOMgNI/cRUC9pyX+cewTWjTc2Awt3bdHAhBPc2eedXoTUY6YSU+KKu2wWdQFufu PaG6IoBRSd2xpEspQLMiwvEhsZ9lJH6hKICb9CVnY6NM1UYbiC5++1lXCum4vZiwtw46 mBkA== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=EKDj7JXHfic8jYMYSebyNwPWGWVrsgLBMORN4I7D5no=; b=OP2pwUMD4JMQHVOzVP6rUziXrTOjW/1GgETiSqpp2vJKREmk4K4XEjKRW7ms1KeXIo ILGORevWYyBCkwiRkjlwsJS8icVI3a1Iv0SGIR9+XoXfz9o11mgq57hsOF7Akt+jqXqW FJxc7YRKd4akojMSU1vVTUrIWnj5EthWzLfo66gprMxaZbClfzrCqCWftKlYwmsNmqrA PuFyJRGyK65FxwmY+SYSiDjLXDOMYylClT0EV9zmy+rYGPAqJm3PS+dK0CeURfLcWyuO sGecdrizwQiyx/4OMZKahI+LNSMVSW+/3ejQ8N0C749z5zPuIjTlc6Pm+S2c8HwVfYBS lKFA== 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 e6si2049656oiy.229.2020.03.17.11.22.34; Tue, 17 Mar 2020 11:22:47 -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 S1726491AbgCQSVC (ORCPT + 99 others); Tue, 17 Mar 2020 14:21:02 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:55441 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726189AbgCQSVC (ORCPT ); Tue, 17 Mar 2020 14:21:02 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jEGpi-00060L-Tq; Tue, 17 Mar 2020 19:20:55 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 6764F1C2293; Tue, 17 Mar 2020 19:20:54 +0100 (CET) Date: Tue, 17 Mar 2020 18:20:54 -0000 From: "tip-bot2 for Baoquan He" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/mm] x86/mm: Remove the now redundant N_MEMORY check Cc: Baoquan He , Borislav Petkov , Wei Yang , Michal Hocko , x86 , LKML In-Reply-To: <20200311011823.27740-1-bhe@redhat.com> References: <20200311011823.27740-1-bhe@redhat.com> MIME-Version: 1.0 Message-ID: <158446925404.28353.8374899643384906431.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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(); }