Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1934477ybh; Sun, 15 Mar 2020 14:58:40 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtjGHenxtsfsWjqY1Cgebo2ysDZGoy3VMvkYP/7ESpZyKg27gJaUrb6jNxgfJoTLMZbPJha X-Received: by 2002:a9d:24a4:: with SMTP id z33mr18200964ota.105.1584309520731; Sun, 15 Mar 2020 14:58:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584309520; cv=none; d=google.com; s=arc-20160816; b=CeGRAviMxXgiQiT2Atdy5qiBAguAJzcLJkrMHI4NhgW4lzRFzFoW2mp0kqOYa7HUk5 IqdDF3b7b7tYN3gRXOy+lZieoFc6GQ0JI/u7Pcb/o/yFcTeSjWxXWSA4khL3+Hc0Mx+a ru4+uTEEWjGaun2hmHVJzVDG01/iLFxGsQ1LJuLqcd4qNtJy+E98/iZmRjpSH+vLsCuJ LZiUenGuQUTWxLdHNUFV4ynkJsE1eRdCUNz6JqiB4DYrVdtZhSUdE6e+B3osbrB/Ok9i 1GTPTJxqK1g5mtoxYr9u9f6AsVcln2FpAOKIvBwjEzlpdraf+9wKoihx/MHa7NZCOZQS mEBA== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=HLihB9dC29PEmBSGEnLAUB0v7jZbe0wOo+ZjC92so+E=; b=gmUjfjTr0oojKnDIoLSR8k0qfMuFWreFaRFqTM38RY2ReEde86CACEFLZFEAFpsahu h+MGqn7rKLtloDL/BxqQxmvD6Ozw7LE5uU9Ip7WIixSJdUk6w6bc6EkYw2k1EXxnOxpS j1VnZXkv2uvbL9+w+0U1rAemysmUepU1fv1nD8Y7Tuw/G25V0OFlNRC/rjiAKR/fjxVx 5xHRgWXZQYyPDHVcpMc7ucqNQTUTKGWu2VmiPQwnrDGJ8XZO2pKnyvi8fgHbzt099Q9y ZqpXlOThoiRd+1b1m8Cfai+80XBh7DeYTgKFJbZs27n7rsyBqNafAXCbJy1YrE+mTc/e rl3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pNQS/5ds"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si8873956ota.160.2020.03.15.14.58.28; Sun, 15 Mar 2020 14:58:40 -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=@gmail.com header.s=20161025 header.b="pNQS/5ds"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729262AbgCOV5a (ORCPT + 99 others); Sun, 15 Mar 2020 17:57:30 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40752 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729253AbgCOV5a (ORCPT ); Sun, 15 Mar 2020 17:57:30 -0400 Received: by mail-wr1-f67.google.com with SMTP id f3so11872138wrw.7 for ; Sun, 15 Mar 2020 14:57:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HLihB9dC29PEmBSGEnLAUB0v7jZbe0wOo+ZjC92so+E=; b=pNQS/5dsMT2cPgmXpzLLY/wpmbaYMOgwn06it0C7G6X/0Q2PbO/OcRHTUhXVWGwnCp pDQ2IJ0+aAptWSVDFctX3/+BCrOPMhTYaQ4QK0bUgXj4MPq57o8h0ulDxEW8vR9YBqJl ELJEtWmYSoYBqWQWPA5s93ituercEF9Nbe5LQTewH6qjD8/KoecUbSqAOwd9LPUM4BEC qxJCQ/FV32Mkm+iXU7ygsaMpxIdtS2ATd7Fc73V0iURJQJ6Q9XS4uTqMD9c3RURsqPxE q+LO89B4EK7SqxugmjegpALlmg/8G54VfRMxjleSXaWr041zzDRIRnDj0eOLqOX5Mvi3 WyCg== 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:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=HLihB9dC29PEmBSGEnLAUB0v7jZbe0wOo+ZjC92so+E=; b=lh765edzuGuxIKHpZrG2f3Rzfp0ji6Q/mBKOywwq6J4JuCCIGVBerv42Vv13rQ8FFI WAx7B7SijXr04ltWVdrs/PXmFWZ0243y0MNbi7jpeuM/OHLp2LnmgxlQzTs++RUeo2DD OnBv7plOgXohWI3qikKainyFFWebBpYnK/haRU/cwI58jlUAy+kz7vsDZVE9V9ns93ap AC2kFVUlwrkoUifZjLnTwtLKPakusxN4V8/J9phllboS6eNPy7jJkREiFi8Z1d+zGoYt Wj+ilAH/XhwISpozbYX5e+pxlU/xlHcbAjNmM9cWXJu5S3ISyvffBi1pDt1x7BeyLDCq gk8w== X-Gm-Message-State: ANhLgQ0M4lTrqYjhnpJn85auk9J3vy9xZv78iemtR+qVO7c+fBicQd37 6vw4K6zdA4c5ilfC+1d76ys= X-Received: by 2002:adf:e881:: with SMTP id d1mr31301356wrm.262.1584309418504; Sun, 15 Mar 2020 14:56:58 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id g127sm28318338wmf.10.2020.03.15.14.56.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Mar 2020 14:56:57 -0700 (PDT) Date: Sun, 15 Mar 2020 21:56:57 +0000 From: Wei Yang To: Baoquan He Cc: Wei Yang , linux-kernel@vger.kernel.org, linux-mm@kvack.org, x86@kernel.org, mhocko@suse.com, akpm@linux-foundation.org Subject: Re: [PATCH v2] x86/mm: Remove the redundant conditional check Message-ID: <20200315215657.hojujnc2ru5jd26n@master> Reply-To: Wei Yang References: <20200311011823.27740-1-bhe@redhat.com> <20200314151006.gnkyf4xpqve6b3wx@master> <20200315124913.GA3486@MiWiFi-R3L-srv> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200315124913.GA3486@MiWiFi-R3L-srv> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 15, 2020 at 08:49:13PM +0800, Baoquan He wrote: >On 03/14/20 at 03:10pm, Wei Yang wrote: >> On Wed, Mar 11, 2020 at 09:18:23AM +0800, Baoquan He wrote: >> >In commit f70029bbaacb ("mm, memory_hotplug: drop CONFIG_MOVABLE_NODE"), >> >the dependency on CONFIG_MOVABLE_NODE was removed for N_MEMORY. Before >> >commit f70029bbaacb, CONFIG_HIGHMEM && !CONFIG_MOVABLE_NODE could make >> >(N_MEMORY == N_NORMAL_MEMORY) be true. After commit f70029bbaacb, N_MEMORY >> >doesn't have any chance to be equal to N_NORMAL_MEMORY. So the conditional >> >check in paging_init() doesn't make sense any more. Let's remove it. >> > >> >Signed-off-by: Baoquan He >> >> The change looks good. While I have one question, we set default value for >> N_HIGH_MEMORY. Why we don't clear this too? > >This is for x86_64 only, there's no node_state for N_HIGH_MEMORY. > Thanks, I see it in arch/x86/Kconfig. -- Wei Yang Help you, Help me