Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp115877rwb; Wed, 21 Sep 2022 18:35:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5gUbPwiHFVzoU5ktCDWRnGAT0ysxr4CglDyGsQc0wzeA4JrR5DPGUyI1gm24s5E17XNkpz X-Received: by 2002:a05:6402:2b8f:b0:453:2e59:364d with SMTP id fj15-20020a0564022b8f00b004532e59364dmr864258edb.254.1663810546275; Wed, 21 Sep 2022 18:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663810546; cv=none; d=google.com; s=arc-20160816; b=khI9tTlBm/7mmTRYIDsuPN37nMOY+7HBhNa1In+WWikk3UOpl3HHjNNultor8ZkxKQ ndFHiO1dTPpjjBTHrHUUjiVLXCXPJOR6qBEnGqIiKiXDIzy/vTg9gbBil/nn5AmMttA1 pQsf5Pehs0DC5NO7KxuFowj2LL0+pGrnQD2mMkYiLAy2ZSRO342keYoGNCsW4eH7DyP8 kIotMLow07a0KIvn/6ePh/xGGaUV/3zG1f/sWCefH0F9wjJsMFRbYUkgqj4JwdWFiNbN 7dIikGyoK1y7Vxl2d9FrJlwM3szu8F6nyfWpdsijFrs23latcFsxitJrgq8qUE+5i8ct f9nA== 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:reply-to :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=4qf8gwW64yaS/ijpFJ5QAbyea/2OTfhuki+JGD62W78=; b=GRjlWjeoTmYTcWOReK6vjjKsG92+f68U8hK/Qc8RwbnFlGi4zy5Eh7aYvLSih1huO+ UwQ3pJqF1zfVMctD+GUdh3zxmlIawjn+btRMrKUN4tQsAnBF5VN6kjP6IaRw4i8jZlLV eDRrHqMl/XRzkRIfXZiwPAteXNwUo1O9O1Au9Vxy51bDzuzFkXrkDdhJQtZG2SAgXdTZ +9rk4eVkQd8w15hFaWbQNBJkoEONj0RDJZhw6NJeYdjp1VasTb6PfBD1q67EyMrxsNBX LJnAgBjdIDX0X5g9OXVvXayTZgf4dlrp2FGiygNHmLrX6JzGoY3acOsrYfbpWD9uFVbR 1rMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sent.com header.s=fm2 header.b=Fzzo+GA+; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=pTT+0lmO; 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=NONE sp=NONE dis=NONE) header.from=sent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xg14-20020a170907320e00b0077e29d27c39si5809525ejb.5.2022.09.21.18.35.20; Wed, 21 Sep 2022 18:35:46 -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=@sent.com header.s=fm2 header.b=Fzzo+GA+; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=pTT+0lmO; 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=NONE sp=NONE dis=NONE) header.from=sent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230188AbiIVBN1 (ORCPT + 99 others); Wed, 21 Sep 2022 21:13:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbiIVBNC (ORCPT ); Wed, 21 Sep 2022 21:13:02 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2054D4CA for ; Wed, 21 Sep 2022 18:13:01 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id DFF1D5C0163; Wed, 21 Sep 2022 21:13:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 21 Sep 2022 21:13:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=cc :cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to :reply-to:sender:subject:subject:to:to; s=fm2; t=1663809180; x= 1663895580; bh=4qf8gwW64yaS/ijpFJ5QAbyea/2OTfhuki+JGD62W78=; b=F zzo+GA+Y+3nduM+jCB3uwjFWL4HQ+5fng2KryrWBV400EykVrizlQ72aQRQpqJdG qMkG7T+0oOdph/N5cdTUvpQ8mkNbkvO+8v/HXLtbLwk/egvD+hxz9dd+Rxhymojn uMbATHeGqQmx4OiZF/5ZJjNZ6VRMILTkwDt/o1Ia3ff9yreInYERJEljR+CXFICo k8OeZBJ0nxzayAWQ6+wvc8+bL51AUDuoRmf0Lyvnc7zZGApPO8YXg3d0jgu3JRiS HnOYwMMAAexr6qcsjqX7zjsb/XqzgwqWFQKpOIpyjhe+zZR5coojlL5/MahKIqD8 YNK/aa0ZxsJl89BeQjI0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1663809180; x=1663895580; bh=4 qf8gwW64yaS/ijpFJ5QAbyea/2OTfhuki+JGD62W78=; b=pTT+0lmOVk5f9USJ5 g/LxbJqaZ6V4sUvK8DR8UvI90Y9/e6WsFSKRPjY4jmUhUHINzTz9g8y1jemIbEbj XTj6WuBoL8oSblVOluTqEW5RoT+ladIxiZqwqDrZw5VonMTvB8eq0WChatnCGqRl hoOiXaf9McR3RwCKJHVIuGoFL1K0XTZwbGnca4f6ZtFsfhWdz1GA6yspy5Crtrga rU81ccpSrlxN9gwrgOjIx1BYIhTzFwkrobvdf2iw+R1Zby463Dh5Q0DaJ34y8fLm zvPMZxzXQePKdJVYBXqsMrmBiAtAYScnP22QXAUlAQ9nCdgpVQ0zNDWmSFCmwgbz IThAQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefvddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhhrggfgsedtqhertdertddtnecuhfhrohhmpegkihcu jggrnhcuoeiiihdrhigrnhesshgvnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeegge ehudfgudduvdelheehteegledtteeiveeuhfffveekhfevueefieeijeegvdenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiiihdrhigrnhessh gvnhhtrdgtohhm X-ME-Proxy: Feedback-ID: iccd040f4:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Sep 2022 21:13:00 -0400 (EDT) From: Zi Yan To: linux-mm@kvack.org Cc: Zi Yan , David Hildenbrand , Matthew Wilcox , Vlastimil Babka , "Kirill A . Shutemov" , Mike Kravetz , John Hubbard , Yang Shi , David Rientjes , James Houghton , Mike Rapoport , Muchun Song , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH v1 07/12] mm/page_reporting: set page_reporting_order to -1 to prevent it running Date: Wed, 21 Sep 2022 21:12:47 -0400 Message-Id: <20220922011252.2266780-8-zi.yan@sent.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220922011252.2266780-1-zi.yan@sent.com> References: <20220922011252.2266780-1-zi.yan@sent.com> Reply-To: Zi Yan MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS 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 From: Zi Yan page_reporting_order was initialized to MAX_ORDER to prevent it running before its value is overwritten. Use -1 instead to remove the dependency on MAX_ORDER. Signed-off-by: Zi Yan Cc: David Hildenbrand Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/page_reporting.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mm/page_reporting.c b/mm/page_reporting.c index d52a55bca6d5..e3d6f4af34e0 100644 --- a/mm/page_reporting.c +++ b/mm/page_reporting.c @@ -11,7 +11,11 @@ #include "page_reporting.h" #include "internal.h" =20 -unsigned int page_reporting_order =3D MAX_ORDER + 1; +/* + * Set page_reporting_order to (unsigned int)-1 to prevent it running unti= l the + * value is being overwritten + */ +unsigned int page_reporting_order =3D (unsigned int)-1; module_param(page_reporting_order, uint, 0644); MODULE_PARM_DESC(page_reporting_order, "Set page reporting order"); =20 --=20 2.35.1