Message ID | 20220922011252.2266780-8-zi.yan@sent.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 81115C6FA8E for <linux-mm@archiver.kernel.org>; Thu, 22 Sep 2022 01:13:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EF85B8000D; Wed, 21 Sep 2022 21:13:01 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E0C3380007; Wed, 21 Sep 2022 21:13:01 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B9AF18000D; Wed, 21 Sep 2022 21:13:01 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id A4FA080007 for <linux-mm@kvack.org>; Wed, 21 Sep 2022 21:13:01 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 8490BA12D1 for <linux-mm@kvack.org>; Thu, 22 Sep 2022 01:13:01 +0000 (UTC) X-FDA: 79937947362.13.F068625 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by imf20.hostedemail.com (Postfix) with ESMTP id 35CB61C001F for <linux-mm@kvack.org>; Thu, 22 Sep 2022 01:13:01 +0000 (UTC) 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: <xms:nLYrYwWcLuXTDS_7Lej0I8Yux3Xa_Jli03xKU0pf6t0A-XvHUoNVhQ> <xme:nLYrY0kIl-dvpkcvOYYHLLT879SWbBXPns3HFPREy-EBU6ymFAsKPbX2ffQt2s5n_ 0xS8-GKcgItYFz_2g> X-ME-Received: <xmr:nLYrY0Z1bDVH2-lXZjtAmGBFgJuznl-V_LODMGOjAACPzxsCPhVziFN6lJN7xB28WgaYKZ7Qw9vgMcwfaA> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefvddggeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhhrggfgsedtqhertdertddtnecuhfhrohhmpegkihcu jggrnhcuoeiiihdrhigrnhesshgvnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpeegge ehudfgudduvdelheehteegledtteeiveeuhfffveekhfevueefieeijeegvdenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiiihdrhigrnhessh gvnhhtrdgtohhm X-ME-Proxy: <xmx:nLYrY_U-9kURvmnuIKRywQj-kpsUr_MxqgKrVMv43bdNGad_E4PlmQ> <xmx:nLYrY6mwiMIaWFKZi1yjkiyqdS17xcBnbKGcib5iu5UhzwX5STKKog> <xmx:nLYrY0eqnY0AJdVeulRSaSeoYBurfUZLBDhJQtbAs0eN0D14Ki_dSg> <xmx:nLYrYwk0-ZTZ1Hk0I_Ar5bkWKTEQRxWJFwMFtryVGvhAWbJmVY0sLw> Feedback-ID: iccd040f4:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 21 Sep 2022 21:13:00 -0400 (EDT) From: Zi Yan <zi.yan@sent.com> To: linux-mm@kvack.org Cc: Zi Yan <ziy@nvidia.com>, David Hildenbrand <david@redhat.com>, Matthew Wilcox <willy@infradead.org>, Vlastimil Babka <vbabka@suse.cz>, "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>, Mike Kravetz <mike.kravetz@oracle.com>, John Hubbard <jhubbard@nvidia.com>, Yang Shi <shy828301@gmail.com>, David Rientjes <rientjes@google.com>, James Houghton <jthoughton@google.com>, Mike Rapoport <rppt@kernel.org>, Muchun Song <songmuchun@bytedance.com>, Andrew Morton <akpm@linux-foundation.org>, 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 <ziy@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663809181; a=rsa-sha256; cv=none; b=3GG53zKQFfN7VieQ3kH67CxOM7RUZ+PJJfu4bZgDXaPyVUelkWDGV8RIar1PwgsGGv1dJR IWPPnK/WLh6dWfnPZSavuH9xkr7+R53F6iTBwGs21BozsJUgFi8l1oDNZVhPOsDMerM6nh P60OGvAKaoEFYIeR3N+cT5zMQ8HI0+E= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=sent.com header.s=fm2 header.b="F zzo+GA"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=pTT+0lmO; dmarc=pass (policy=none) header.from=sent.com; spf=pass (imf20.hostedemail.com: domain of zi.yan@sent.com designates 66.111.4.26 as permitted sender) smtp.mailfrom=zi.yan@sent.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663809181; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=4qf8gwW64yaS/ijpFJ5QAbyea/2OTfhuki+JGD62W78=; b=fx2IXsHpuO6CYxrbUh+AmT/gRcsp9YbUqVtW/iph2B4+LPBw5gnLXH+uhijBBDWtYFHvM+ 4KCtQEc8/NaEHjQZlG1wUhbZXZ0ROSPQmZwSbZrzI9+Fk7yZ0FZqnNiiAlEyzCaosw540U ZzqQaTnGCRua4jdtGase59vxDOK0iRc= X-Stat-Signature: iu79ys3hyf1sekfafsyj9up3fwpgkxgo X-Rspamd-Queue-Id: 35CB61C001F Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=sent.com header.s=fm2 header.b="F zzo+GA"; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=pTT+0lmO; dmarc=pass (policy=none) header.from=sent.com; spf=pass (imf20.hostedemail.com: domain of zi.yan@sent.com designates 66.111.4.26 as permitted sender) smtp.mailfrom=zi.yan@sent.com X-Rspamd-Server: rspam02 X-Rspam-User: X-HE-Tag: 1663809181-966810 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Make MAX_ORDER adjustable as a kernel boot time parameter.
|
expand
|
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" -unsigned int page_reporting_order = MAX_ORDER + 1; +/* + * Set page_reporting_order to (unsigned int)-1 to prevent it running until the + * value is being overwritten + */ +unsigned int page_reporting_order = (unsigned int)-1; module_param(page_reporting_order, uint, 0644); MODULE_PARM_DESC(page_reporting_order, "Set page reporting order");