From patchwork Mon Jan 9 21:33:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13094371 Return-Path: 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 9E80AC54EBE for ; Mon, 9 Jan 2023 21:33:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3B0F4900005; Mon, 9 Jan 2023 16:33:54 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 2EAF8900004; Mon, 9 Jan 2023 16:33:54 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0EF76900005; Mon, 9 Jan 2023 16:33:54 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E7DC7900004 for ; Mon, 9 Jan 2023 16:33:53 -0500 (EST) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 40087AB54C for ; Mon, 9 Jan 2023 21:33:49 +0000 (UTC) X-FDA: 80336562978.06.C291AC7 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id 8944920004 for ; Mon, 9 Jan 2023 21:33:47 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=tG9V3TNB; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673300027; a=rsa-sha256; cv=none; b=RpIxE2g8B3ahGv7zgrgPElxKb0Bg/wBeucJKnVAhvcI0TymGPUZxDBPFbeoZ8Tux0Y6zxS REBkZ8mAZjrbaV/fQMtAQlXvdfSdyteIPR4DUu98RmL6fc/g2rFEZtDwhdipvb5MkIiVP/ dE+bFbivzolkrAYYWtUdfvrSDn28F6g= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=tG9V3TNB; spf=pass (imf03.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673300027; 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:references:dkim-signature; bh=O9YDCE3yqhyiYglKL2I6NDPS5aJHtFp7EE+5CIycKq0=; b=fptYQCt7lUPnDcNzlFDCgg55alddFi9s4GnGnro9kDsjVxD5mUsQMXC2wTBOmvm4QVtCfv EXpclXegef1gyRyslBfECpu2WpJmy0jre27/RP32lH64QIFlL0aZEAWBAwvDl4LRSvyyq+ Fqxo2iKw6DBOKfkvPQTgoU9vAhEkVNc= 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 dfw.source.kernel.org (Postfix) with ESMTPS id 6D45F6134B; Mon, 9 Jan 2023 21:33:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62D46C433D2; Mon, 9 Jan 2023 21:33:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673300025; bh=YoH2tR8NLH+QbhLgJ/r04bzOqFDeQdgriWy2NASAc0k=; h=From:To:Cc:Subject:Date:From; b=tG9V3TNBUY0/wfoUfLXTIpTeXPSAFHZ2Zw+oAXdW09R0hULHv4cAPV9k5vMXA42c3 dAatgxDxPlenTlDWEi8/LepR1AfAT7h//7FTkXFtw83bJHvdw7qyF7EV/OIFRP/5AP dMzN9hmFgX7xkX7IwIE/tDvM2M8SiVvPeEFvHEkMScUjOquZS09Sojdd00gVHCtT6j 5Y7aI/HVmWKVmWkDAhxmJllGVt5IBxketV3RIIzzUK2uqsN35a2/8C6yyIYBjclN/r qjYDQs5jQaNR7EzINZ/64L3j/qOz4peyjij6wChVy8XccpurVH4f5CDxY3+nDg1UgO wdwj3/v6L/RJw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] mm/damon/{v,p}addr: misc fixups for folio usage Date: Mon, 9 Jan 2023 21:33:29 +0000 Message-Id: <20230109213335.62525-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Queue-Id: 8944920004 X-Rspamd-Server: rspam01 X-Stat-Signature: 79dwwde5wuk37g5cydrpbrohmaqwxah5 X-HE-Tag: 1673300027-278361 X-HE-Meta: U2FsdGVkX18YqRfIU7tded1nDV29uAJ/pdO96LNUrpVnTnv4XUwj5EdVSKq2YkBKKP3FYlpERx4zsKy76C1duOCilFXD3RBlBNdsvaAk2fqruZTsBiVkq4XZl7aXI/6+ODbReFmuw9W33Te15qy01s8SbdohVosuqySZSEqcBBDXwPwOrqlQ5sY30R8kAZ9PxGh2T9t28+kZHgXYafDejrnAuuqT99+eODS7Gyj/INrYxigBTobgJR+fUJ5i36Dd3FKOytpEOYo8ujSDsmR50xacktRFVhaUREJcg4b/v3MsM4DcOI+Kj7pgJ6IjJz+2vGn4OXCJR2ZUrm3TpA2MX3vgqALdh+CKizRdJSbWeU96fKEVytrVa6BnjiP9oSBw816fdkeMlsf+iHPm1IL3FdW3swy1r3EkCUyqnAXxexS8h4B2qm4Old3JZkvmoicgmZ6Xb3F7Tbnf1PxANyAzW7hTuLzx98orENNjE7llzQ4UpTq60tWPptkSkPxgznKa2V0kW29w85qvwM/iCHDREU3aX+O9dcSgbN46lJlP7yZbJYn/UUV4xHL8ePxyq9ge3bIRadZMYfE06HMtli2bhe2SI9gIOFrl53ls9HLnl10qwfu3Le3t5FCAQyQF6cz/Ygo0kabCsYIvbPA0/YOsiqJtnhFmUjT2H0jR+KWFiF+z2s3E8Ug2tsgKTE0sHkiZ2+WuefKWJ2unMJ+tK61dcQnZ9lELDMZgGlCh2KCKr52PCs4jXhAJPVcE7CIH61v5f+fhdN/13CsvZgR2sxW5eZruc569atSI+aYbZrB+LCuNaYOCq0o4VXHs3jwheRi9j/iYOy3T9j9WcudGItTCrHsoPZl1aFemDelTYDWbM4pmGRENnvWDM+/IzrgcAxWWQR9dXJOXZ01jOyVwFUCYKSSh+n1wFrzIN5jWfu+KWADIAzXuxrAurtvw/hwMfuWEEHCdNYU5iYiUtUJLPNj dJNWWyO3 PBrKw9r9d7TAGBunMBKEuV7G40RnKt8CNuD0S7RzGj2hUwZapLITLufG9UPFqZaKz+gKu 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: DAMON's monitoring operations set for the virtual and the physical address spaces use folio now, but some code is not reflecting the fact. Further cleanup the code for folio usage. SeongJae Park (6): mm/damon/vaddr: rename 'damon_young_walk_private->page_sz' to 'folio_sz' mm/damon/vaddr: support folio of neither HPAGE_PMD_SIZE nor PAGE_SIZE mm/damon/vaddr: record appropriate folio size when the access is not found mm/damon/paddr: rename 'damon_pa_access_chk_result->page_sz' to 'folio_sz' mm/damon/paddr: remove folio_sz filed from damon_pa_access_chk_result mm/damon/paddr: remove damon_pa_access_chk_result struct mm/damon/paddr.c | 44 +++++++++++++++++--------------------------- mm/damon/vaddr.c | 30 ++++++++++++++---------------- 2 files changed, 31 insertions(+), 43 deletions(-)