Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10553594pxu; Wed, 30 Dec 2020 05:47:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJxWkL85z1CwMkokmTmlrKpbXx3USMdhy2AFoMTaOFMjx//9vpszSBNFUdv6y+5qczeTBYu+ X-Received: by 2002:a50:d552:: with SMTP id f18mr45659447edj.168.1609336023936; Wed, 30 Dec 2020 05:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609336023; cv=none; d=google.com; s=arc-20160816; b=w4UIl1jPi2tchAlgKnGwnrmnswnqh2Pl1/M5dgL/EN2tE/JefOQiUdUork7TuDljpP GLkVkas3NW6gBHL/pva2GOogUzbF6uvzHU/bqguPQBSPcBZAHEe1G1z1WnbumP8y8+1V EimQ87X8FW1xIDptheiXUxSWb3+x0kkIoaFPsEye1u1Ke2X1879vjRi9IfrRoIHNNKX0 tb2t+vG6/DkEH8aE90Uy4lA9jIu6w0+zhHAz1GSIAUgQ4uEMJaitXszPF/HwR3ySt7l7 ZgC7rW8evyyNZlATHWsBznVpJ+emaEOuoUlkskPpXR7eKMSv0EiQqdHwWKcgVUxM95rX 6BJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dUj2WjSpqQLcqlN8UUnmEWJx9j8l+px7OfZqNlRWbo4=; b=C8QrHbalk3g7f27bjr4iEXTb1eDh9edZ1+eGDscVk0mowf3VWU67j6hmp3qWrhoNuy iCaBfYvQ0+UOYLBR2ymdpj1uCtYjSUX2i7edE1Eaf/EJwRTLZr8FMwJJ3LzqI2my5g4/ cVCJdpdU7fJTLvTYfCTOxvJR9G1ez5e3NzLdBD0YUpSa82Rs7iu4jSWuRL0yZDvp1MAB 6JCPelnulDgrcpTjAkmiQTwnrwpnRWi04fdi+TFC7vudQPW1uQcoSnFF+Y3uZGybXIA2 gsoc1uCExO72RVVq4hzITX3+hu/Fjt8xwVSuZYGyb4US6Ey1+wNotG2b6fLSVX0iX6de sqAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ptoC1ga1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd41si23466950ejc.168.2020.12.30.05.46.41; Wed, 30 Dec 2020 05:47:03 -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=@gmail.com header.s=20161025 header.b=ptoC1ga1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727028AbgL3Nms (ORCPT + 99 others); Wed, 30 Dec 2020 08:42:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbgL3Nmr (ORCPT ); Wed, 30 Dec 2020 08:42:47 -0500 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69EB6C061799 for ; Wed, 30 Dec 2020 05:42:07 -0800 (PST) Received: by mail-io1-xd2d.google.com with SMTP id o6so14694857iob.10 for ; Wed, 30 Dec 2020 05:42:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dUj2WjSpqQLcqlN8UUnmEWJx9j8l+px7OfZqNlRWbo4=; b=ptoC1ga1r10YXdrJmNBXpdltzmqvnmO26GrH7dl2K40hEnTGyvi5i96sj2nP42DyQx y+ONHv+CdiqoJJ1/zamY8j4DYOgeQADniB7HFORhrjf4ffr5yLhaj6z7v74AyF0x1z34 p7wH6rLWHsTRBwQ8RrCMpg9RjeO6/lavTFdjRCbcmNkVt347P2Jy+KLgF7OAtpbdYNjF VEYDFHrOGlrBjuTzpL/5ZOD/VpAvyJjjaPfguBVqvk1UBLA6Kv89rZxwX/mltOKeig5x x5xkccxI/34NkGar/u5SjXw+YnpOIzn8KAU7G0wN0iZGxbFLRIVcxQwS+Teks/fu9j9c /VUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dUj2WjSpqQLcqlN8UUnmEWJx9j8l+px7OfZqNlRWbo4=; b=oVfs6PzFZA8s8lPErgM3ESqnbWFi8LZIArCR41ttvTcBKDu9qQNMCxsw5xlY8Y7fUA LZBOt9IOdV6xOktJ8Kyd5iUOyzvXlC36hfs5/y5dIW5Qkltz894QEnUUzIUbCYLVuqIu F3Vf9RjP/NpHjj8g4MaIW8hJYmV8pXh3QG7hsA8kqQiNSHtqPNdj07QOEnPPeXWQnTSg m310QqsaxRcegKJbdaFLkR//vOvjWFFuatpv39MHQVRqDU/PE2XV2QkqKfEgcjZovqWO LlMOtRCxny37dUZWW+OxjPXvUBUAN6ZELD+0yeq+cM80sZ27s+9DcHGIufAyb1fCQaT+ +3qg== X-Gm-Message-State: AOAM531WosfdqKOzRZB92ZPKI88zYqvMkUskWSbTcMG6eoSE5Noy9n+t 9SxUvzlAZH8CjRB0R0EGjOsFLshVe/4S5hzBefpuUijNA5c= X-Received: by 2002:a02:cd84:: with SMTP id l4mr46075384jap.141.1609335726798; Wed, 30 Dec 2020 05:42:06 -0800 (PST) MIME-Version: 1.0 References: <20201230114014.GA1934427@ubuntu-A520I-AC> <20201230124233.GE28221@casper.infradead.org> In-Reply-To: <20201230124233.GE28221@casper.infradead.org> From: Muchun Song Date: Wed, 30 Dec 2020 21:41:30 +0800 Message-ID: Subject: Re: [PATCH] mm/page_alloc: remove the static for local variable node_order To: Matthew Wilcox Cc: Hui Su , Andrew Morton , linux-mm@kvack.org, linux-kernel , Michal Hocko Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 8:45 PM 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. This is not the first time I have seen similar changes. So what do you think about adding a comment here to avoid another one do this in the feature? > > 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.