From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93B91C433EF for ; Sat, 15 Jan 2022 23:45:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9BBB16B0096; Sat, 15 Jan 2022 18:45:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 96A936B0098; Sat, 15 Jan 2022 18:45:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 831C56B0099; Sat, 15 Jan 2022 18:45:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0127.hostedemail.com [216.40.44.127]) by kanga.kvack.org (Postfix) with ESMTP id 6FFE56B0096 for ; Sat, 15 Jan 2022 18:45:26 -0500 (EST) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 1C661181F24AB for ; Sat, 15 Jan 2022 23:45:26 +0000 (UTC) X-FDA: 79034155452.12.1B03FF9 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by imf10.hostedemail.com (Postfix) with ESMTP id 501D9C0006 for ; Sat, 15 Jan 2022 23:45:20 +0000 (UTC) Received: by mail-ed1-f50.google.com with SMTP id 30so48984238edv.3 for ; Sat, 15 Jan 2022 15:45:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=w75my6N+lE9Tb7Xrd/3B5AqGyYJg6q7bwJts0m1eHAM=; b=HULieHlYiwuUrdzEf/a41YN5yHintRqwUa+1XNEXIwjwf+O7x7SO8+/0ejBJiMkLRv Qa7gt8IC33b3dOj97R4TZthJuecJMwdGbrnLHhSzMwjJ2yX4rrx3FJHeMkJG6vyzGCWw wj7bVt2ssWFUwm8gHkV6o07eNmrWKxsBXpSgTZFrTXKQrElgqaCHytBXy3GhHHXbPlis GB1n0zQrJQZqdM61P+Fc4cFNJ0D+yym7BaFwavjAtR9ZHs6dHASEs9H6vQ3XTkRkXNo+ e9tC5AhoOCXa7771/23ATjXEEvLPGKi0FYPuiTxTC3YYqRxGwsqqiAvOoRYfd47cwwYO Morw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=w75my6N+lE9Tb7Xrd/3B5AqGyYJg6q7bwJts0m1eHAM=; b=QuuBWepqvhY927tDLDt6ucL84abpVihFfdsHXbcVqWzvtjLWqyGzctI9vPsRPDhgrC gzJMx/dIWFaTpiueTAHBRHUEJW/womDdGMCAuwcwHsq9VJcvg3JusO/6diBj41m6xlE6 qX/46blEbIXKfXn88CaEB5256JFhWw9jMwNYZ+Dw/laAq5OVdzbO+xoliTq27eeke6hB W3TIOVBFuugTzB1oYo8fw2jgsFVeZHpuxpABKWfghugb05Xar70SUeYxnA7I2hLON6qE aSe/1k4JOcSSm4ph1+iQuIe4dgQguNeZs5Ik+8HjIl3uiiV2t+DBhDsec5ZCYXIoysHF 3ZbQ== X-Gm-Message-State: AOAM533bLX+u5XecXrIW53UMZOxiKgHUGncKJ+MrFwN5lwfsC2A0dGVg LbWdiKRR9dDhAUfoQUnV0fM= X-Google-Smtp-Source: ABdhPJxIdNHo4amCDxOD387P/932l4bdBqsU+sfIquBgaBClOd6a7rSXfKoEW6rcSfE9h29VW8ubEA== X-Received: by 2002:aa7:c60e:: with SMTP id h14mr12964037edq.40.1642290318922; Sat, 15 Jan 2022 15:45:18 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id e26sm1407022edy.36.2022.01.15.15.45.18 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 15 Jan 2022 15:45:18 -0800 (PST) Date: Sat, 15 Jan 2022 23:45:18 +0000 From: Wei Yang To: Wei Yang Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, mhocko@suse.com Subject: Re: [PATCH] mm/page_alloc: clear node_load[] in function build_zonelists Message-ID: <20220115234518.4q2yhb3mz2sg76iz@master> Reply-To: Wei Yang References: <20220115230002.490-1-richard.weiyang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220115230002.490-1-richard.weiyang@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Rspamd-Queue-Id: 501D9C0006 X-Stat-Signature: 4fasiidwzeiesct6jiesbn1ucp9qq171 Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HULieHlY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf10.hostedemail.com: domain of richard.weiyang@gmail.com designates 209.85.208.50 as permitted sender) smtp.mailfrom=richard.weiyang@gmail.com X-Rspamd-Server: rspam08 X-HE-Tag: 1642290320-105703 X-Bogosity: Ham, tests=bogofilter, spamicity=0.345423, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, Jan 15, 2022 at 11:00:02PM +0000, Wei Yang wrote: >static variable node_load[] is a helper variable during build zonelist. >On each turn for building zonelist, node_load[] is cleared. So this is >proper to do this in function build_zonelist. > Hm... sounds I missed some important part of this operation. Please forget this one :-( >Another side effect is, #ifdef CONFIG_NUMA could be removed since >node_load[] is only defined when CONFIG_NUMA is set. > -- Wei Yang Help you, Help me