Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10503868pxu; Wed, 30 Dec 2020 04:44:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSWUNf1Ra5bxUyuX1NdrVT2MlT6qSq2irk8KpvhF+JLXN4BGO8H9j5JV1qEesq15HWkRuX X-Received: by 2002:a50:c3c5:: with SMTP id i5mr50630299edf.166.1609332299342; Wed, 30 Dec 2020 04:44:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609332299; cv=none; d=google.com; s=arc-20160816; b=r4rluvI0p1lzglKvl1kcnKseEhFwo0N6oizu1k8P8Do0EDQ28rkB1ToFLUqFX8MmOl NMGxs/W+ECMNgcT7JhW0zFSgsosTaHdLx+V/OJ1W8g96dKpWY4X8UnU9UWdAMcdosBM0 YNrE/IzuKSN+dvcqoZ8HQWjBiQ45wJ+eMBcczl7tnwMFDYze015GsMqS27Ssu0eKXi3S ClIel+xIERnF6w03RkwwGnPqVg989YUoelCogafPLIEHvACM3Goll74C2c/q9/Xt0QjL EnL7EwXESJUpLmQs2rpvtP0W9rukgsPg5j/oaK0MUOMVV2tDLaPpjBeFu7r+3sfJNMWd FSkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GFv7dLiw0NpGHZG0c6KE16f5Mn2s1/PKG0D3EAXZlPg=; b=WEVNTv8nr23d70Gsc7G9QMDmDHF7kr+dJEnW21PXPWaCD4/Onu9jLmHth5yN7S5HKE YW7mFv8IJuGHOuAn9k4GJ2uc3Nfz1lUL3SUBT4OT27Qn6QAk5rYKZWId7CGvzsYAnFZn VAxslpkXcvxnV1lQsEc0jHXRx7MP92IfpVBI07yTIX2BSvDilqu3MJaJT+luBAHmuMKT fTZCO+ygQN1G+4qW1D+0IHBWBDdersaoyr2QIdLS48Pxb/wPOpN4D08JdSLMmnUg6EGM leuiztctnGWbzG4NYblwiFj7K6g7HtwTOLYLLiEWH1coD6tIgNzsYBbeeQKVygpIl4Bc b/LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="uN/ggEkR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si21511820eje.652.2020.12.30.04.44.36; Wed, 30 Dec 2020 04:44:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="uN/ggEkR"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726605AbgL3Mn3 (ORCPT + 99 others); Wed, 30 Dec 2020 07:43:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbgL3Mn3 (ORCPT ); Wed, 30 Dec 2020 07:43:29 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC137C061799 for ; Wed, 30 Dec 2020 04:42:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=GFv7dLiw0NpGHZG0c6KE16f5Mn2s1/PKG0D3EAXZlPg=; b=uN/ggEkRMYWqEeLgaDS0WEauPE ovr2dGeW22qLxFinoQ3HQw/jht1QBOn3NHnINc7l6Febx4iec63rXVLHg0MsNjAmB2lH3CpcwdhHp ydmxXJH98wiYjyMvX1jeaFpRMSchSy5sTWnjoZdvWq8UWYSKojnT8ShdhTyinN3UnduhQMdAgplaw Ri+P6xo1M/rdZXBdXZsJY7mjelKw3iCYuim786Zvre4qNWFxEWOlvA2SR06bubgHDXnrE/lS6NgK9 cyG+mpGFBuquSvUm/u/1RdkIImRIID0m7Z3KnwkNdAHsYxa6vd22CjTkubmagNl4e3d7LRoxlgkH2 +skMHlKA==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1kuaoD-001IVR-LA; Wed, 30 Dec 2020 12:42:34 +0000 Date: Wed, 30 Dec 2020 12:42:33 +0000 From: Matthew Wilcox To: Hui Su Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Michal Hocko Subject: Re: [PATCH] mm/page_alloc: remove the static for local variable node_order Message-ID: <20201230124233.GE28221@casper.infradead.org> References: <20201230114014.GA1934427@ubuntu-A520I-AC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230114014.GA1934427@ubuntu-A520I-AC> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 07:40:14PM +0800, Hui Su wrote: > local variable node_order do not need the static here. It bloody well does. It can be up to 2^10 entries on x86 (and larger on others) That's 4kB which you've now moved onto the stack. Please, learn more about what you're doing. I suggest sending patches to drivers/staging; that will help you learn how to submit patches to linux.