From patchwork Tue Dec 13 09:27:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13071848 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 CAC67C4332F for ; Tue, 13 Dec 2022 09:11:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 190968E0005; Tue, 13 Dec 2022 04:11:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 118B48E0003; Tue, 13 Dec 2022 04:11:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F17058E0003; Tue, 13 Dec 2022 04:11:25 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id E20B58E0002 for ; Tue, 13 Dec 2022 04:11:25 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 8B95340C42 for ; Tue, 13 Dec 2022 09:11:25 +0000 (UTC) X-FDA: 80236714530.07.D0D7E7C Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf29.hostedemail.com (Postfix) with ESMTP id 4DEC512000B for ; Tue, 13 Dec 2022 09:11:22 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf29.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 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=1670922684; 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=Ep29rOflI9YgIISfHh+a7oiGchho5DLyWyNXjr+teMI=; b=V+WOGkBDNZwbrCg0+O7F4sdIxpq91sBckOS9LLTHd+sxcOVGOXRoCw1J8+dWSXE9Kxpbrx 5Kb/z9I7ETOXo6EuEX14ysJZYIYpp3zrR3PTPpB3ysxDiYHAH7j3VRJ8SY9Y2nmx4BDU+S CKo/FwtlaIiU+qn7B9RTgup1njT/BDI= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf29.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1670922684; a=rsa-sha256; cv=none; b=H4ycj5krCiWvT0dSSbq5TKjJO4er7R+zygGPs6SuKDQvqrZMkfyDGPUuY+q5/fkKRNgcde 4p2/vjz6BduLFG27LdBfYDPSFUox8gRE0s4ngMxhs7owPUqWXeipVRlBfT6Q9aFFcPuU4M Fw16EOEuxJLx002DUSbjWi4/rZXdNmw= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NWXlH1vCJzRph1; Tue, 13 Dec 2022 17:10:19 +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, 13 Dec 2022 17:11:18 +0800 From: Kefeng Wang To: Andrew Morton , David Hildenbrand , Oscar Salvador , SeongJae Park CC: , , , , , Kefeng Wang Subject: [PATCH -next 0/8] mm: converted page idle and damon to use folios Date: Tue, 13 Dec 2022 17:27:27 +0800 Message-ID: <20221213092735.187924-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: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: 4DEC512000B X-Stat-Signature: 6j9ymcpis3gq4r8bsmqtxye4kf3uynyk X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1670922682-660576 X-HE-Meta: U2FsdGVkX18zh6iXErKzU1bthTcWhjLVNhVHM1HqG+AS7lN1f0KCxMbVsuVV5t8HTND3gPp9cp+/iF0vakCxjbh9tJ+pXvZZSiYBG8iLjR2Eqle0yOwK+dkbDTgjLqrwooLAD1Hy4a6ewf/qG2SsxNJ7+1gwCbLgOYD2qGt3yITAH+zphWa8GAoQztzzCTu+Wfxy23VRPbLOThDSQMdYpbUoktPXMmPDwBGe3oo3rmOej2CCfITdNXFdsFO1+9ZZHqqimc2+Tw9wAwOcvPLBJN4dS5GWKW+CbNujKjVEHRy44sWeQ0U2mSM4EhTXI5LBPFE3yanOewhuWclWy2jP93XEvN5TSkvC/z8HKLkZeEBCKdyckSa0sKngpJgO+Fjd2Yt8ykUggS1jn6Wdk3BNgIJLrRClhXMSmU3jxko0AhQnksnxUUIXx5173CF+rzeLvzWoFsiNXQrEoK8gisj1b6nar7cGQGVO2XQQPUNyT2lU0brzHh2XddCVZV7SWVyScGcQLUmLB81ykWLPwj5Og/33JgCcqSaw056/HjW1085iofrpp5CN6ET949IpIhrhB1L2CPEQYxBG1zDqb5VLpBSev3aIWJc9rEX6TNfOobVaO4bPcSGZeFL+5VTQ2HiKpzkAO5w+gSeCZJ89r7qamH4ZOJYDFwGUOLav1WOFYrmmvL5nKW59q/jdkE72GTeUxrz606eiTTrnBC0FUJNIg+AtYINvfk2EEsTyvXAgeflVou8dhYQVe+O4qs0dk17oIgc4VijSDzgueGkN8MIAmulG3ZgDVeAs5yLRSl1jvn3EEJ/UOOFXIkeq8yVnv837OfW4AlRCpIdgld0tOi10gBoWKr84V4i+PS8+sYHWZrpN5Lo3tnU+rpKmcu7tBHdQSLCrE4ayTqK8h2L9x1WfnFaEMQpl6njIdMHzq6xCGq6RvPjY9Akoqw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000013, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Introduce pfn_to_online_folio() to convert page idle and damon feature to use folios. For page idle feature, should we rename file name and Kconfig to folio too, options? Note: this is based on next-2022113, and some context depends on patchset[1], please help us to review, thanks. [1] https://lore.kernel.org/linux-mm/20221207230152.22938-1-vishal.moola@gmail.com/ Kefeng Wang (8): mm: memory_hotplug: add pfn_to_online_folio() mm: page_idle: Convert page idle to use folios mm: huge_memory: convert split_huge_pages_all() to use folios mm: damon: add temporary 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() include/linux/memory_hotplug.h | 7 +++ mm/damon/ops-common.c | 38 +++++++------- mm/damon/ops-common.h | 3 +- mm/damon/paddr.c | 44 +++++++--------- mm/damon/vaddr.c | 20 ++++---- mm/huge_memory.c | 22 ++++---- mm/page_idle.c | 91 ++++++++++++++++------------------ 7 files changed, 112 insertions(+), 113 deletions(-)