Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6044972ybp; Tue, 8 Oct 2019 12:08:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX/FM5ZisYDICSKCvCWvamX/yTnSo4VIF5+/YhBvOd8p71irikER8sqMwR+0Fsq1nqB7sb X-Received: by 2002:a50:9250:: with SMTP id j16mr35943643eda.160.1570561737515; Tue, 08 Oct 2019 12:08:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570561737; cv=none; d=google.com; s=arc-20160816; b=yaf+Vf01jQbW+qjJlIpUsFzL8nsP/Cy+aSAGkf7r74dgqoyceQThaDslib7NxB01jg 5KURXPFG1ObAY4HheoL1RcwnHCFgMc7s56oDpdpYrRHVwZjGTBYhObsiFvJasdwK6bSJ 5QQTR/afmWO/xFy5CzQd8pzIPjaGagm7EIAT8r7+2g2k+FBWejffUqxkqLZhfNyOBJlj +jG+mjneQ8P+gxzU5lE2N2Db2oVFIv9XMiZkOIeeau3/l4zMxkYdQQe+L9nuqe1d7Oes h7EdY9XEO7Cdn/H9HK0Fw32q7+h7Pvr808GE/rSfXugNZmaGQlPZB6hJHbHd8O1Dsf47 +QsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=AQ6KsNLEaWf3a8bJA4Kk3Vh9ciwAQcEsrmx2vLSzQh4=; b=SI3lL4bNhxOGsa+hbQozhWrPYgrtbfbXWq3VtbvSfkzQqXQRGenAEQNlO/O+5UjNbu xmcKscfwq/8tygoh+DbJxtZtuwy6HtYWLHKHNsPUv9B9gbtQ+MhOed7h4Wsf5V/5y8GL SpQ7nUPl5zLaoakngEJ7LTgB9S1EQhBSajZpsK8/n1g3ecNmlI9UNb8Z5YY3OQdK548B crfbISiQ/eoYo0Tck033QRuBcTgBIpcMF6noe+tXFIXUr3BYDB+Mjx5U2BSmXcrOj4wJ xkHkVNSJwhAnQ7WxRZ59iNYuinO895O5cgw0PtcFGMHfbKBdS0FIbuRERwCm4xtN8EeR 04FQ== 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 v25si11706064edb.286.2019.10.08.12.08.33; Tue, 08 Oct 2019 12:08:57 -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 S1729872AbfJHTG6 (ORCPT + 99 others); Tue, 8 Oct 2019 15:06:58 -0400 Received: from gentwo.org ([3.19.106.255]:37640 "EHLO gentwo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfJHTG5 (ORCPT ); Tue, 8 Oct 2019 15:06:57 -0400 Received: by gentwo.org (Postfix, from userid 1002) id 0EC6A3EC01; Tue, 8 Oct 2019 19:06:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by gentwo.org (Postfix) with ESMTP id 0BD213E886; Tue, 8 Oct 2019 19:06:57 +0000 (UTC) Date: Tue, 8 Oct 2019 19:06:57 +0000 (UTC) From: Christopher Lameter X-X-Sender: cl@www.lameter.com To: Kaitao Cheng cc: akpm@linux-foundation.org, sashal@kernel.org, mhocko@suse.com, osalvador@suse.de, mgorman@techsingularity.net, rppt@linux.ibm.com, dan.j.williams@intel.com, alexander.h.duyck@linux.intel.com, pavel.tatashin@microsoft.com, glider@google.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song Subject: Re: [PATCH] mm, page_alloc: drop pointless static qualifier in build_zonelists() In-Reply-To: <20190927161416.62293-1-pilgrimtao@gmail.com> Message-ID: References: <20190927161416.62293-1-pilgrimtao@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Sep 2019, Kaitao Cheng wrote: > There is no need to make the 'node_order' variable static > since new value always be assigned before use it. In the past MAX_NUMMNODES could become quite large like 512 or 1k. Large array allocations on the stack are problematic. Maybe that is no longer the case?