Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp296519rwd; Wed, 31 May 2023 23:45:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Zl3brOUDykanqbTRrkCZsu9aTpzIXj9+c9jHav7wfH1Pach3cbazL6wZWe0Y17yTBidkU X-Received: by 2002:a05:6a00:8ca:b0:64d:6a78:1575 with SMTP id s10-20020a056a0008ca00b0064d6a781575mr6915674pfu.30.1685601934593; Wed, 31 May 2023 23:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685601934; cv=none; d=google.com; s=arc-20160816; b=H8iQzq6M2qMnf1DxRGfENyBG5S5SF787V/GCqtNzCK0XaVBFszqrKXvUKO2JGYFoRS +ajMOidkXK4l1VlRzaElMg9ZPee+pBn00BSy1k1owYy7dG4xW7ct0AMjHvSwOLkjJr6f V1UnA5GnrFuYyJgvMOAAi34mGUz7Zc/2gT+IVquakbDOwQcuWXF34eQ646JiYzkNbiHM /kHrDSgYptHM5Ps6WJ7VNEQFEIF105Vidsp0QHi5R3LVKxYTb/xgcGMxQU3GqoPs3czC ZTxBIwwdF5PkICEeqj4nMwCz1hZCf+LsXPoAvjRfQoIH/BQ5eP3vIZKUNFu48t03ME/Q 8pRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Yo4KpLHyDoqHIBvQ9JqkoTCF1HCKBISMihHQ0OedbcM=; b=JksueSmPNZBWQahLc/Kt9piwwU/kGBmxzzSk33XDXuLvLa1XOonlA4WrAiBTUmOJzQ N5yf8EnL72g/ZxSNyW6BwxZxMnit2fOwpPKNxe8hyQCGwcZF9opjIwTig6vJ4pyhm0r4 StUX8JL/+yWLlGgP3/RL/b09hI1uo7wwpNqRWA+7Ryg1BENFL3x9fBmqnPhqXP8ZqLp+ RBhkY6jLxa1HWPplIEakAsLPTVlV11KhVyqUQxi1pkh1QTiwGINfRzlZCZgsd8w0r4Ks MgWSjJA/xpm3824/lUwQJ6z0oL9UoYnwtoq9Ms4MUux3pKU5X3BetLPyqNd9frnNTonX ho4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=krWHhOOC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q17-20020a638c51000000b0053ef05fcf1esi2340554pgn.35.2023.05.31.23.45.21; Wed, 31 May 2023 23:45:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=krWHhOOC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231721AbjFAGf4 (ORCPT + 99 others); Thu, 1 Jun 2023 02:35:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbjFAGfy (ORCPT ); Thu, 1 Jun 2023 02:35:54 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46D4D11F for ; Wed, 31 May 2023 23:35:53 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-650c8cb68aeso28728b3a.3 for ; Wed, 31 May 2023 23:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1685601352; x=1688193352; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Yo4KpLHyDoqHIBvQ9JqkoTCF1HCKBISMihHQ0OedbcM=; b=krWHhOOCJqafMpdTiRylmP4T/OONSeCIK2v322KPtkvuGR0tHxk1/vbaWUhgTmiowG xjNQ7rqEV40SanzD9dyiSLZRZIgBlQxXQXNSP8O6URYXAiWpEnwyFyMY0LAS5hRtjPFu CGm0gVneZKduAONIbb8nady1sNoc3uTX+YOLQodFNzRT+5M0D65vxdIdm2M/GbRBoFV9 +0gVub6Q1VS5oX0Kl68IanWEJTNESZlwG9h1oVxkTGF54fy32Eg/SyAVJKH4470PMXRg cuWkQ4f+T9SMqBswZouKbIctfH/NLaKqI7HPCNS90frh4OhZFFOXNE419TqUKET2ZwGF fnUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685601352; x=1688193352; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yo4KpLHyDoqHIBvQ9JqkoTCF1HCKBISMihHQ0OedbcM=; b=T7TswpTepxDqPlTGfDQ2Inqrt9XLv6l0AOQjMUWVkBKSDt8FaccH/5VRXUhdnXvIzW B+HMVz3bTXNI2ihTs6Jt98bJX+zDl3VQFC7zEccLGjTJ0vzRGs5fyjnPGdlIglzdcOH0 qFpyUHG4x3v1ZMlNyDOZyihW7b585nHqkUBpQpMRPnzCMTtSCoxj+T4q8BzodvcbLBSl 5Z4RZzH54jTqLknDgge8tR1p/J61NDn8KWUFGZxhuMk0WoPSouoQLVU0Tm9h99fXi4xd Ep4zTp/RlzS4zqa3FEEFgWIPeFPn3cj1UFKzFEt/kCM5xYeeJbM6nBPjwaxXrOPEhnmZ JNcQ== X-Gm-Message-State: AC+VfDxp2YCpWJGvvfJDROjvo0hNBNcA1RtAeuwurUTGognx4BpSbgiC pSAZPhSeO09N8meo5SbR1p1lyQ== X-Received: by 2002:a05:6a00:1693:b0:647:4dee:62b7 with SMTP id k19-20020a056a00169300b006474dee62b7mr7775708pfc.29.1685601352575; Wed, 31 May 2023 23:35:52 -0700 (PDT) Received: from ubuntu-hf2.default.svc.cluster.local ([101.127.248.173]) by smtp.gmail.com with ESMTPSA id x25-20020a62fb19000000b0062e0c39977csm4302233pfm.139.2023.05.31.23.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 23:35:52 -0700 (PDT) From: Haifeng Xu To: rppt@kernel.org Cc: mhocko@kernel.org, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Haifeng Xu Subject: [PATCH 1/2] mm/mm_init.c: move set_pageblock_order() to free_area_init() Date: Thu, 1 Jun 2023 06:35:35 +0000 Message-Id: <20230601063536.26882-1-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pageblock_order only needs to be set once, there is no need to initialize it in every zone/node. Signed-off-by: Haifeng Xu --- mm/mm_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/mm_init.c b/mm/mm_init.c index 93821824271a..232efac9a929 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c @@ -1583,7 +1583,6 @@ static void __init free_area_init_core(struct pglist_data *pgdat) if (!size) continue; - set_pageblock_order(); setup_usemap(zone); init_currently_empty_zone(zone, zone->zone_start_pfn, size); } @@ -1850,6 +1849,8 @@ void __init free_area_init(unsigned long *max_zone_pfn) /* Initialise every node */ mminit_verify_pageflags_layout(); setup_nr_node_ids(); + set_pageblock_order(); + for_each_node(nid) { pg_data_t *pgdat; -- 2.25.1