Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10528377pxu; Wed, 30 Dec 2020 05:21:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnfs5ABxtCp9c07CpyEPS29767oIiikMVu8geW06dtkIi72fKpDSR5Xd7yR1Nh7yqseeVS X-Received: by 2002:a50:e882:: with SMTP id f2mr49005904edn.76.1609334514417; Wed, 30 Dec 2020 05:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609334514; cv=none; d=google.com; s=arc-20160816; b=QDAt2aAg36rkrABGSdRhBoxBJ2uFdYYN/IlJimEm7goI2tqGUSdlmJN9roxJ0KYW47 THrvl3xa84dvco/UpjSfep51NJeCmibRDn5mDrq/rF0teQzGiPsomNot/h1u9E6OFMoT mjvgQxbGDChp4AnJT1AiW4NCDlusGqo/PCWjQE/WUfHhMjhrSLTC3QYgEwx0l/jNSaik 8XNXd3JpD+a9Ccxn/j/IKEkCx1vsrlLJ5QCcDwQ6E53RleEXYYWH/JjvqNnt5D5NbYL3 peV8uJaQjsrYkV+jSUI+z/xVuKD6PH4agaSzM5iV08qH7sonkMKoFUMaIsc4qWuZg4eO kaMg== 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=Vq/jtT4DcwIkqvSQv+fIEjUupKGdKzlR1CmJFed2Syo=; b=htNRRa89yS3Z0Ufo8rcRtTTSXzZTArddmXT6rU6HV7ECLgNEIyPVgpQGBMBYEEneNl FZcjB9FYtTUf8c/68zemjMCmwuFTeygvE9TupDgRvTZDjwLFXjHBJ2sZBZDmIydqiGHn /KwDLLThhnPrfUGeWYoHuWeIWbIXOA4TpjzhAmIlgJUeL3+flWNTYDel1yFCvsZE1NTC ZOWR2DVaYeBWTwd/MCIjVvsUzDC97lNiEQ9q/IbXHvm/wJ+fNSGavsNQXDVY0KTJVuZb hHwEOZjr86uJQ/clm4rIxRrPxK12l59h2Tmws6v6QvJDSs1FuJEdljHUG0cSNtOPkbDX uihQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=dus3OHVj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k27si21158173eji.193.2020.12.30.05.21.30; Wed, 30 Dec 2020 05:21:54 -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=@163.com header.s=s110527 header.b=dus3OHVj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726848AbgL3NTy (ORCPT + 99 others); Wed, 30 Dec 2020 08:19:54 -0500 Received: from m12-12.163.com ([220.181.12.12]:35848 "EHLO m12-12.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbgL3NTx (ORCPT ); Wed, 30 Dec 2020 08:19:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=Vq/jt T4DcwIkqvSQv+fIEjUupKGdKzlR1CmJFed2Syo=; b=dus3OHVjPMKoZKgllID3Z fxasKX1pKSRoGYwKpWAhT7HnKT8djuiVdHLxgZCFqS3YoozF/f/51Vlr9kYB2kCY LuZTlnpvIjAEfOOZTj87lcCGQoenMs2mBRFvD1vrHV74nIaPqtCVk4i2upBXJ+2O Ubum3yz3MQcXosgOxPCQ6M= Received: from localhost (unknown [101.86.213.121]) by smtp8 (Coremail) with SMTP id DMCowACHENzAeexf9qzHJg--.23498S2; Wed, 30 Dec 2020 20:59:45 +0800 (CST) Date: Wed, 30 Dec 2020 20:59:44 +0800 From: Hui Su To: Matthew Wilcox 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: <20201230125944.GA2040977@ubuntu-A520I-AC> References: <20201230114014.GA1934427@ubuntu-A520I-AC> <20201230124233.GE28221@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230124233.GE28221@casper.infradead.org> X-CM-TRANSID: DMCowACHENzAeexf9qzHJg--.23498S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUc4lkUUUUU X-Originating-IP: [101.86.213.121] X-CM-SenderInfo: xvkbvvri6rljoofrz/1tbiIAELX10TCy4s7QAAsf Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Matthew: On Wed, Dec 30, 2020 at 12:42:33PM +0000, Matthew Wilcox wrote: > 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. > Thanks for your explanation, this change will put too much onto the stack in some cases which i didn't consider. Please ignore this change. > 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.