From patchwork Mon Aug 26 06:58:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13777223 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 436DBC5321D for ; Mon, 26 Aug 2024 06:58:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9FAE6B020D; Mon, 26 Aug 2024 02:58:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C4FE16B0213; Mon, 26 Aug 2024 02:58:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B3EE46B0246; Mon, 26 Aug 2024 02:58:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 94B6D6B020D for ; Mon, 26 Aug 2024 02:58:37 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 39DEC1C4B94 for ; Mon, 26 Aug 2024 06:58:37 +0000 (UTC) X-FDA: 82493493474.16.89168A5 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf08.hostedemail.com (Postfix) with ESMTP id 87F08160007 for ; Mon, 26 Aug 2024 06:58:34 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=none; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1724655496; 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=TqHdzqKj+q1XgiSgm90umqjH9eBWsqTheUy/DvPAhWA=; b=aaoE9ysTZEQ8m5IDbHvSeVAXRuNEs5XJqjh3QCBzxyJFNeylgoMPULZZrK9/LLEzCPr0ut wxXuQmLaPSsmo05yR/en9Nh282XZ2OAy3n9rpesYeDDEIgpic0YU6+2XMVLUWbU3SRE5Zu alhrQb6V33XJ0WhpyH3hgZOJlGKOwqY= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=none; spf=pass (imf08.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724655496; a=rsa-sha256; cv=none; b=RcOkNof4lDEc3TPUuevm5ifmh9a/zGO4YfQzY83uwjLCB0epPVWwGvg36RvlNdZT27QBWh O4ciXwalvt9xcyJwPL3pavnmKa1k4U05dGH7pdSzrfLZ/Ijj0h/rruHYXKW5nxRWMoKAR6 LraB6RNB1u47ZS2M2nt/et4o3599svI= Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4WshMD6WQpzpVrr; Mon, 26 Aug 2024 14:57:44 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id 86EF6140120; Mon, 26 Aug 2024 14:58:30 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemf100008.china.huawei.com (7.185.36.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 26 Aug 2024 14:58:30 +0800 From: Kefeng Wang To: Andrew Morton CC: David Hildenbrand , Matthew Wilcox , Baolin Wang , Zi Yan , Alistair Popple , Jonathan Corbet , , Kefeng Wang Subject: [PATCH 0/6] mm: finish isolate/putback_lru_page() Date: Mon, 26 Aug 2024 14:58:08 +0800 Message-ID: <20240826065814.1336616-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemf100008.china.huawei.com (7.185.36.138) X-Rspam-User: X-Stat-Signature: 1jz45dpf7jpjifytxxrxemedc8mfqpnk X-Rspamd-Queue-Id: 87F08160007 X-Rspamd-Server: rspam11 X-HE-Tag: 1724655514-687072 X-HE-Meta: U2FsdGVkX199+7ILgrG4MN0fA8U4tlze005794q05BVdGSYOWqpdC43rytwjJZYbR1bEtzyapM2YqOGXnxKDhHQrGTNkwEIXikHPB4jlXJVbW+jXnIKO5Z0CvErUWVBQhw9LDUKIx+PQFW8LbUTIIeYriWSmnYvjqr0Jjzgqyp/zgc/uG/sgtT43j7pH1mRX62227Px3OUvGPhFpUry8PcD7waR70/ebaeE0jD77Y0pKDICiu2VWaEEl+Aby9grHx+Ftqdp2vMRuvZcxpp5Q1SawZg3M13fmXZqg0s6q3S/3HXmg4lYEMvX2a14oiThqE1Q0YchMPWPwwIDMyPU/L86dCAhDrzHx2c4/HamVwFIlHrsCGnm8ap3IOe/yI7xuy9rvnlAC+OJsLDFPxEZSgE4qOg7Fu6+hJqv9NLjvqUkaH//35Q1pxFvmXvDRDMejs3YJC2hHMGWGhE0Kg4wJ7F3nsWkS69lmQSlSWuwytAeyMBSbnYFMcKe/7oqWW2EYH9FCc33kv52q3CAD99KtYmwtijtzMaFZdZzHwKtTGMT0d2hD97wTWUNA5+XEOKnVz6bOtITjP1XPMUxrvML1gR6ZqRPFREJjRkZbTlp1Hu4jgMFUxvHKtBRNCV0UIBduvpLpnJhd+hsdodLsqeEXOV0QK2Oawl4aXqRhulDz33xn83qH8dEZZbLU1OL2FSTWWXDxBnp0VuJ2GSnkRVkL5VI3O4XLw5UW3vYtwWqz3D9gU6euLxc6BHiMuFOlR/hiDjUTSYJ29CXCXp7cqhNKJ4L2lr8aCqF03SJmNHgcgz7YPgOlLg5oxnzqrkY5MfJz7+Nmmt8j/QKv22WGAu9DIGCoKhStbKHaIj1GW8ciahr/pXG+IHbh9N87jCDHNYkWpYcAt7OJTGZMN78Svz2qe2mD1NV32WuIpQHSLV78WDzyzNHQtOYZBa0/uWtZ0Uank68G66FYpsnfm97smFZ Wjh4prPd VpHlc5vA/776scLPFn5rMOHz08dB0xgt3gW7YqDpNft6k7pCGt17V/NqHZJQSoNh5cZivW62ve2fczuMOptD9QdG2renyrvl0gVwOfYRVP+fZaknZLedRMdf+v6gXMgNkiQBXRhDKgyEW5Tu0ZlN63BNcqcblKdz2PdPCK6oNkoylkd0= 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: List-Subscribe: List-Unsubscribe: Convert to use more folios in migrate_device.c, then we could remove isolate_lru_page() and putback_lru_page(). Based on next-20240823. Kefeng Wang (6): mm: migrate_device: convert to migrate_device_coherent_folio() mm: migrate_device: use a folio in migrate_device_range() mm: migrate_device: use more folio in migrate_device_unmap() mm: migrate_device: use more folio in migrate_device_finalize() mm: remove isolate_lru_page() mm: remove putback_lru_page() Documentation/mm/page_migration.rst | 6 +- Documentation/mm/unevictable-lru.rst | 2 +- .../translations/zh_CN/mm/page_migration.rst | 6 +- mm/filemap.c | 2 +- mm/folio-compat.c | 12 --- mm/gup.c | 2 +- mm/internal.h | 4 +- mm/khugepaged.c | 6 +- mm/migrate_device.c | 102 +++++++++--------- mm/swap.c | 2 +- 10 files changed, 67 insertions(+), 77 deletions(-)