Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp66178pxt; Thu, 5 Aug 2021 18:09:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFobCkP9dmOvT8HtSmiejK5StVfhFscLGnpdw8sBjChjjoqgEUuSMUASx34ytMuBl84px3 X-Received: by 2002:a05:6402:3588:: with SMTP id y8mr9933709edc.362.1628212158960; Thu, 05 Aug 2021 18:09:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628212158; cv=none; d=google.com; s=arc-20160816; b=m6+dMJQSN9jIvVofggdpogwHlfYMozCTDX9hFyF/Migu1uS90EtVK25/xMSRMTjbFR UnwZ7BAEVosC6DbWeDOydjIK0BC7xTKTGVenLO7Qgbrq9/gXfCFX3ynKYhXvU72uGI8a KvaNd9BW2btKSHV4WEfY3RGlWWIGzzLZ1Ru3KIZkLQCL6lGGSGuEGN1FlQtsOLquwGL/ A+8djs/GQSETezyhgteQkGCCLbgPEBXR0iPETPUe/zZFj9EzNQr8R9mN+s8xG8bfwvsi 4cNBdt2NjcvfJJ5iLbs5tequh9LFM2E94uvW8g6fufs0N6R7MU6SbSZeN0I4q7Tt+XJN d5nA== 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 :dkim-signature:dkim-signature; bh=pTLuD9o+Rmmgy0pSJ8qC8qZ3Ebj/NqVHsmXPx9g5Fxc=; b=cxZjEuwQ+QLw0lovEaunueKM7TDvdYgYj+lU01s3Aonhgr+8wzdG9+4grpCUVmc2Qt p7jYjRIpvPCmM9VRou0WvjT4l1s9A+H3UyOkVtWK/qNT7wBWDTqulp1pJM0EdlMJLuzA +IyHPLdB14kuc/jj8i403HIFrAkcwKhMgt7vvEN0aaUItMNAWTSKuC1MpERst1/9KXEf Y5/l7dHNZr9Fz+hpsif8jFaOGXuWkO1MtSessSVJGCYBBRa5b8Xxco/r4dpedDmUwaeM CTnI2cp22JuiH7grA+6jnxPGl42nZcxM0meo1KYPqOATiWsYuSIljYc9xuuxiZZQK8dn +HTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sent.com header.s=fm1 header.b=Kp0Np0Hf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=cn0whdGO; 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=NONE dis=NONE) header.from=sent.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si7114967eds.504.2021.08.05.18.08.55; Thu, 05 Aug 2021 18:09:18 -0700 (PDT) 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=@sent.com header.s=fm1 header.b=Kp0Np0Hf; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=cn0whdGO; 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=NONE dis=NONE) header.from=sent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242229AbhHETET (ORCPT + 99 others); Thu, 5 Aug 2021 15:04:19 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:40077 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242227AbhHETEJ (ORCPT ); Thu, 5 Aug 2021 15:04:09 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3C87F5C0165; Thu, 5 Aug 2021 15:03:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 05 Aug 2021 15:03:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=from :to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; s=fm1; bh=pTLuD9o+Rmmgy 0pSJ8qC8qZ3Ebj/NqVHsmXPx9g5Fxc=; b=Kp0Np0Hf0NGj5MD7k1hOtXahgTB13 XkazXI1X7daDaaQnyFKuYl2p4JTQsccsGu0BF42Nl0GFFccmD3nUkiSxYDa4ehD7 V9Fu2U/3KrbMx3oJDSBOZYKyogvAUZs1h2c+/KMelXJlnZiwMzrvSS8XieZOz2AV 29ylT0zTceUen8nFsV9HJwcwFaNTOBS5V6YUOJ+Su3dJUPfn+LojBBeG3VUHHyrB OtWaPS9djWWtKZGQc4kpHtq2OVi/mIQ6VJb81fq5aTjNKatRstc0t92zpKJabC+6 F0Fry3laq170IcGcO5wkkva9qJfGSFruj5TWWf615DTUjrIADTWfMlyiQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:reply-to:subject :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=pTLuD9o+Rmmgy0pSJ8qC8qZ3Ebj/NqVHsmXPx9g5Fxc=; b=cn0whdGO Exf5LNe8JX9l3+KjfyixQahsDwaAeSwhUpwYKaKjoGWKm9OAflpKpOgF1/yvtKUv m+l5/51VPD9Te0/h6kIlC3Pm03XIwJV28R9rV4bSkFoYCTvHqqrRDVhvhLK85IK7 5i+1/Z+tUCG8ItxBlOtyyYFkU6FoRiK+S2Jk4qJgJmRkBh5gWEKZjODD658AhZo1 DyelFHJs5BGheZGhVxF4Lm2ZtDOebrEp3MGtvKoGW+6LmkZEC9RA9bRN8qbR1zFc d3mP+D48U6OtAA8RbvJqDYw53CfhGPoTTC39g0anAAU1a+gnbtxjAiox7ZWUx/u2 C1+4OSIoPuMGoA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrieelgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfrhgggfestdhqredtredttdenucfhrhhomhepkghiucgj rghnuceoiihirdihrghnsehsvghnthdrtghomheqnecuggftrfgrthhtvghrnhepieejue dvueduuefhgefhheeiuedvtedvuefgieegveetueeiueehtdegudehfeelnecuvehluhhs thgvrhfuihiivgepvdenucfrrghrrghmpehmrghilhhfrhhomhepiihirdihrghnsehsvg hnthdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Aug 2021 15:03:53 -0400 (EDT) From: Zi Yan To: David Hildenbrand , linux-mm@kvack.org Cc: Matthew Wilcox , Vlastimil Babka , "Kirill A . Shutemov" , Mike Kravetz , Michal Hocko , John Hubbard , linux-kernel@vger.kernel.org, Zi Yan Subject: [RFC PATCH 11/15] mm/page_reporting: report pages at section size instead of MAX_ORDER. Date: Thu, 5 Aug 2021 15:02:49 -0400 Message-Id: <20210805190253.2795604-12-zi.yan@sent.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210805190253.2795604-1-zi.yan@sent.com> References: <20210805190253.2795604-1-zi.yan@sent.com> Reply-To: Zi Yan MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zi Yan page_reporting_order was set to MAX_ORDER, which is always smaller than a memory section size. An upcoming change will make MAX_ORDER larger than a memory section size. Set page_reporting_order to PFN_SECTION_SHIFT to match existing size assumption. Signed-off-by: Zi Yan Cc: David Hildenbrand Cc: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org --- mm/page_reporting.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_reporting.c b/mm/page_reporting.c index 382958eef8a9..dc4a2d699862 100644 --- a/mm/page_reporting.c +++ b/mm/page_reporting.c @@ -11,7 +11,8 @@ #include "page_reporting.h" #include "internal.h" =20 -unsigned int page_reporting_order =3D MAX_ORDER; +/* Set page_reporting_order at section size */ +unsigned int page_reporting_order =3D PFN_SECTION_SHIFT; module_param(page_reporting_order, uint, 0644); MODULE_PARM_DESC(page_reporting_order, "Set page reporting order"); =20 --=20 2.30.2