From patchwork Tue Dec 27 12:27:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13082239 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 6AAA2C10F1B for ; Tue, 27 Dec 2022 12:11:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 79F9A8E0005; Tue, 27 Dec 2022 07:11:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 78A9D8E0006; Tue, 27 Dec 2022 07:11:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5DAFA8E0005; Tue, 27 Dec 2022 07:11:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 501A48E0001 for ; Tue, 27 Dec 2022 07:11:40 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 1E1DA1602FA for ; Tue, 27 Dec 2022 12:11:40 +0000 (UTC) X-FDA: 80287971960.19.54F7BA1 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf13.hostedemail.com (Postfix) with ESMTP id DA45A2000C for ; Tue, 27 Dec 2022 12:11:37 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1672143098; 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-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=bTSFXSmGDqncPXLWb8+ewqXVs82hq44pUxteFx9UeEU=; b=nLVDY5pepQnigxhi+pkEHLbDUHApbx1u95zrN5TFE5xsSYJmK3qF8IYK4PBRy3JbiiU6By VwmhwKDo1tD/cD6gctmC89gCSTcXBEaJmLUQjKZfYz5h5heJF4qz2ZSmUhJAyS14qNMYJV WoZGD5JNjWUtgz8juKwz+kAIGlHYpxc= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672143098; a=rsa-sha256; cv=none; b=533ArPEs9kuB+g7WSBKV2oDZSbrUUIGDHctvhGKZJ+amf+GwZMZryUEmxTjPl6zkUbHaUD boJ3TCS7z49W3P2wAZReljpYyWosNKij0omKa3qhnSoV++JU6lKkxGUC3mMyVYHlktIFmY bCQVXVlIW29afI7NVQh/3NhWknhV+t8= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NhD4S5MCrzmWr7; Tue, 27 Dec 2022 20:10:16 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 27 Dec 2022 20:11:32 +0800 From: Kefeng Wang To: Andrew Morton , SeongJae Park CC: , , , , , Kefeng Wang Subject: [PATCH -next v2 0/7] mm: convert page_idle/damon to use folios Date: Tue, 27 Dec 2022 20:27:07 +0800 Message-ID: <20221227122714.161224-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: DA45A2000C X-Stat-Signature: pi9wbpos58k7peh8qbfu11kpgiejnbyy X-HE-Tag: 1672143097-623536 X-HE-Meta: U2FsdGVkX18IxTzO7rQ4uoKMEsLftr/VsanVb5l0a7IHdjmJALz55wG53N7wyXHYYgG6aJtAcntD1UeD39wmipnk2VoaVq65nFXJTNCzFiVN180qyGM1Bp5aWiI0SOff1LOFQsy2+X62SSe13n6fybl9sbVu+XrBfDhZELZZlW48BTs3BxzI65FmMJ/vukMD2K9MlogXwCb1ysN81asirw6HYFuCcyunmdqw7EbTM1H07GFy4lWUTyUsxvLuhibeejdOZd3T8INXHKfwBdfzCrVIqSX7B1aoOXbwF3rg6/foINbUi+aCMpsIrIe6IG+ENcrY2l5DCJlc1KZFy85NIMiFl2RjTKhYTmCqrgohFlSPfCAZz0dZsbtHz0w4jEeWp7JfPmEAiEzbTEJY8E1kWRD0DmmO45CEGz8vuunQm5KeJXZMgTBOoSm8fuy//J361i52cOpNEnRkNqlWHvni6sBfEuBFUH5xvsJ5QYnfIMKnbW1krmoGQOFSbLuCJO3lqd/T56nc/RNuthhELuuCPADOs01beKm9rC70vR43hlMq+B4cpZlkr8S66k3AY/M+lK3OUxa8x+ptw6IigZ5sLV9U6Dav63wbFPQ/q3gxb1VRg/NZ0ebnz/1rGuGpbiZD32dBe287WRnyvyN7l2Nylv6Xj7vNiF5jAkMI6kKyY5cLmCsMmqYfovLaU8d7Zd3dPv/0yCbrq1r3YdJVsk4GZu+Wh1r688NiXXmfDr996u0l6vKvbyXvLHPANr49r2aCNpMPKmuusarF5CA72+eyEt5QJmvuYWWitD0uWMepePdAK2nQzACpKdEcf8PzgauH0oPAFbyTfyGHHciEcKgIza/fmVD6KB1DW0aJceE1TyQG+qQ7280Bw3ZVcsvYULuFWVXIoWZzCH8HXDvYB+qHYq+Gc4dEE1KsDkRkCm/vyRgpnSn1VjOCdXOkwuy6sPepLIPad7eUnZ+WYcXuGbK tj3qJfe5 NRk0D 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: v2: - drop unsafe pfn_to_online_folio(), convert page_idle_get_page() and damon_get_page() to return a folio after grab a refence - convert damon hugetlb related functions - rebased on next-20221226. Kefeng Wang (7): mm: page_idle: Convert page idle to use folios mm: damon: introduce damon_get_folio() mm: damon: convert damon_ptep/pmdp_mkold() to use folios mm: damon: paddr: convert damon_pa_*() to use folios mm: damon: vaddr: convert damon_young_pmd_entry() to use folio mm: damon: remove unneed damon_get_page() mm: damon: vaddr: convert hugetlb related function to use folios mm/damon/ops-common.c | 34 +++++++++++++------------ mm/damon/ops-common.h | 2 +- mm/damon/paddr.c | 59 +++++++++++++++++++------------------------ mm/damon/vaddr.c | 38 ++++++++++++++-------------- mm/page_idle.c | 45 ++++++++++++++++----------------- 5 files changed, 86 insertions(+), 92 deletions(-)