Message ID | 20230109213335.62525-3-sj@kernel.org (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 48B9EC54EBD for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 21:33:54 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 33B10900002; Mon, 9 Jan 2023 16:33:52 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2EC53900003; Mon, 9 Jan 2023 16:33:52 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 18BF6900002; Mon, 9 Jan 2023 16:33:52 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id F25DD900003 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 16:33:51 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C26851A102A for <linux-mm@kvack.org>; Mon, 9 Jan 2023 21:33:51 +0000 (UTC) X-FDA: 80336563062.07.523C286 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf21.hostedemail.com (Postfix) with ESMTP id 1EEE21C0015 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 21:33:49 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jRDHdTCz; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf21.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673300030; h=from:from:sender: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=MGUu9cOvc1HuAi4ImywWxr6yj31JHAQ/zFkqT9+UlA4=; b=4VmSAf6rf+CltEv+EhMUzIyppt/vx0+/2UjiJ7dKWckBV+ZuXeZNVqaMvMNFTxbXbLuTbn nDlftx7TlYVESONEM/6pAcna6rJjUL9/c97hmO7YkVEamHzT4qGHc1IxMHP5fi3Mpmb/JS NrobMgqmJA6VpS+uMvic9F2CZngOTRo= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=jRDHdTCz; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf21.hostedemail.com: domain of sj@kernel.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=sj@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673300030; a=rsa-sha256; cv=none; b=CXCgWxMCvn6+zzSeQJbjp1eDOtBQShduaqMlQOBiyOV/URw8s08K+nss9cNqaRZMd+wB/U Rv0NsClMGSgzbjpqyHxCzomP9jmwrbSHNsrGyWnMHej9bcDrLXZO3ciklIoXWeyupJHbEt Fp+HeYCtBSlrpcDeAS147tDTOfPdoOA= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3C5B2B80F9D; Mon, 9 Jan 2023 21:33:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95EB2C43392; Mon, 9 Jan 2023 21:33:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673300026; bh=S9qpLQ77vZLkX0Fi/FnXthnFg4be2LJbk3/kO/j1qTI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jRDHdTCz4fpg4pSg+atnuiWHPSzA34OuiyN0y4hpkdydvPbEXc5zQNd2rmXYtLG3R 3qnhCqhu0s5e6yY71KGAHWgxIuU/eKP9xpeghcLzTaHoAiaNpS1AV6Ixh21DKD0orM uSzwGl7Itp0qOi0SAjUWVJgo6gllE3SdJ2Tfo53cV7OsSDL+n310BVjzmPDIcm0XMO p8wPGPwVOXBEM6ivtFSJskAo1VQNvggSIM9GNleCP4uRobOuMxdi9GBMueeRyyR1Rr BEaar4UIe6j/wPq/l0eaX6+bLZBckUQuURSfg9NUCEN8MXUiJ4raIz5tcuKTpBcfsR BUGNJ394IFnhg== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/6] mm/damon/vaddr: support folio of neither HPAGE_PMD_SIZE nor PAGE_SIZE Date: Mon, 9 Jan 2023 21:33:31 +0000 Message-Id: <20230109213335.62525-3-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230109213335.62525-1-sj@kernel.org> References: <20230109213335.62525-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1EEE21C0015 X-Stat-Signature: 81131ptkfosj5ujhufeyapf3fqt588oi X-HE-Tag: 1673300029-866516 X-HE-Meta: U2FsdGVkX18TYQcgeXN2oORDis8Bc2UiadRRrVDvKWC2By4ak+zu+z40HKx3QC9zcG4/72br4bFDqRpTtLrJgnze6wgts+3bLMsb9FdcI2WTIAez03QENsNzPEqKJcvjdTskRfI+D4WHnIVz3GF1A9fU2UlhU9nZt0OffsUBeJA8Axwbd79Xi9/JfCLz2Sr8We6N79pnxq7CqPKXu0A8dW2Y23WW6IuwwgAP/1JQSiCqcTh5JmsB4OTVT8YqiX9ibBi4AMzBjQEKwdaFTFWpCbaOIwfBFeP0Kb0z6PaIf6j2mnLXB2MJKDmVaqSVXNb7ybn2y54c6vU40EVKwYi0GwFkcvP9r/aHWgvcNTSOxqf8ntBX51zQhJbPrMtI6sSTxv+NXgWcKw6jHaJ5laxVeazP2iuqOn/DksntjxbTiM/hf/3NKDM8BXhzeyicNp7QhyJzBTDgDlrW1F2zHh9f2AF3eo3j5bxJnfkSfGphcNoCTjjwDjsClrEjYr3ysWLl/sxVxygVKBwvlKsXXSyIQeiBrLAZJchmQ1mjCFwtvxqDQiRvtqTS7CXVFDrfMUhK4SbbOx5owK2jHzi3F9Ra3gwZHHY6tVDC9VT6+Ea3zFCOIFVs+9ZZ0wsvqGYzcYPY/DcImYoxOtGjLk08seYG9Ijlwx1rmg0Gss1tEvTEMXM0Yab28MlAS1Vkwox40xCYbFlCJGqOKTeY3e74T/KMLVzssPoanxrGYUQc9Kxs3l7o8Gf0pJAXI8D1ktIvB7DpEjHxs1ea9l2c6Sc0SEmpm4RvafLD5NtZeq9FuZAB74KJ3yoreRrxum/grOJ6abEJwmh/wlsAyBFyV3JO6VncUkOGH1mtlRAdPwKh6yB3TEOkU65wSHILSxRv+cBqZLwPgq6E3A2cec42c3xroxUP47rFb47+CrxeZ/auOyimp4BKi9YQZg8GQJYlv1zuwXd2xSkjm4KegBVKhjp67ww Ugw7SQu3 ZY4jxgF84emqAW7lmJy1oDvhiu2f+bznfhWc9/D7kHp/QRcQvaHwkzfWwWQcL2YzOsPPSMPSMhXHDTTFM64d7Kt6g3I7AtMaxKJaN8KLsg7dA0WsPXhTpa9OZpQ== 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 |
mm/damon/{v,p}addr: misc fixups for folio usage
|
expand
|
diff --git a/mm/damon/vaddr.c b/mm/damon/vaddr.c index d6cb1fca1769..c7b192006fe6 100644 --- a/mm/damon/vaddr.c +++ b/mm/damon/vaddr.c @@ -475,7 +475,7 @@ static int damon_young_pmd_entry(pmd_t *pmd, unsigned long addr, goto out; if (pte_young(*pte) || !folio_test_idle(folio) || mmu_notifier_test_young(walk->mm, addr)) { - *priv->folio_sz = PAGE_SIZE; + *priv->folio_sz = folio_size(folio); priv->young = true; } folio_put(folio);
DAMON virtual address space monitoring operations set treats folios having non-HPAGE_PMD_SIZE size as having PAGE_SIZE size. Use the exact size of the folio. Signed-off-by: SeongJae Park <sj@kernel.org> --- mm/damon/vaddr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)