From patchwork Wed Mar 27 14:10:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13606712 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 92269C54E67 for ; Wed, 27 Mar 2024 14:13:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2E106B0088; Wed, 27 Mar 2024 10:13:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DDF076B0087; Wed, 27 Mar 2024 10:13:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CA5E96B0092; Wed, 27 Mar 2024 10:13:21 -0400 (EDT) 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 A785B6B0087 for ; Wed, 27 Mar 2024 10:13:21 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 635F9A0235 for ; Wed, 27 Mar 2024 14:13:21 +0000 (UTC) X-FDA: 81943011402.17.22CBBA4 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf21.hostedemail.com (Postfix) with ESMTP id 4DF1D1C000E for ; Wed, 27 Mar 2024 14:13:17 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf21.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=1711548799; 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=ER0I/l8NSgKkoKaT8KdBZNsXiQWeSprIDn8DEK2igOU=; b=bHFWUMoB3/3I+YVXWXnABLWMgHFS9JC9eOBbmOx+nJdyMtyrIpdh3NbHML8V7S17IXlsq4 WU6qdcPrDPiOvW9iGuEibVQFr39Z6csZojGv1OPsPnXHwZIg7YV3EXwJbEYLhvQj9XHzQU VkA1NhThM4kBGjwfGO6GuQTuvdvIY3w= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf21.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=1711548799; a=rsa-sha256; cv=none; b=aTsxj/xQ95w75vmSp9BT7ETzxIbuqCbaXiLqBuC7mUhQfUqcukP2BTuwnrVS8XInEE72eF h1BcD36Vua5keT9NVgh13oo1mwvvbPfw1vkZkGyKXlsnaG8C21hj/tGXG6nh+/FpF9lFjL sgLkCS4eWHAmV3rARo4rntdSPTBVP6I= Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4V4T8g0hkgzXjwd; Wed, 27 Mar 2024 22:10:27 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 68BA41404F6; Wed, 27 Mar 2024 22:13:14 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 27 Mar 2024 22:13:13 +0800 From: Kefeng Wang To: Andrew Morton CC: , Miaohe Lin , Naoya Horiguchi , David Hildenbrand , Oscar Salvador , Zi Yan , Hugh Dickins , Jonathan Corbet , , , Baolin Wang , Kefeng Wang Subject: [PATCH 0/6] mm: remove isolate_lru_page() and isolate_movable_page() Date: Wed, 27 Mar 2024 22:10:28 +0800 Message-ID: <20240327141034.3712697-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: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-Rspam-User: X-Stat-Signature: iqhhw3fa7c9sdggij8te51xdoux6umae X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 4DF1D1C000E X-HE-Tag: 1711548797-550649 X-HE-Meta: U2FsdGVkX184ZLpOs9p8ir9hwylq7e5NrWiMZE6x8aAYcVW0kWLcuXdL7KpdEkHZB8nFozhSzzpnNHaNQkdLQTJ+D4DwyFHxBEdHZVKL+rts1h664rR8Ro44CpyfURexXyEZ4jqgRvFPEz+SmnQ1+pUgBgsC5AxzZJ8IfJg9yHWTM/A7bKphJMVSbMn28TxNqyVBIrH+cfBo/Sjx17iiGNSshimUQb6gJogP9qr2868vIpaGcACdKbDUJuqlwB2YVcc54xeGnAMGPaVRYDhDGp2DGgN9Rk8b4bya1mh5e1S2Et1unhDecLyrD+h+mxElr5j4nzHrEoCKtGsdk+T6aCgJW8DQhlVXY/jt+tImAvRarfhbzadwwXmY6zwaWRR8y9i8Dfp3T+C+vrTyqoWrOoUTXYT8i3mGpBRdBLkHDNJ5sW3rYfIyxBEJyaca9f3dOz1JOZqcSYq+G7hAVTGBXFzidYi01bSkRpveZyW6eNjYCL3/UPRtlu1XWiBE8fT/2hMw3sP72qSHEai5+kYxWhgCZEr1uO37MpT7sFNFc3nJ+kBbjfSGRueCVVlU88XtWiwRn0K9PanOnEuAQ15fnrb2Jpqh/1l1ot8zW8heGEKvrDAgh1O6lK4X4U2f2RdlxFn5jAFsP65hucURfdarBZ7cRW/ja2ZlNoRnOe4I7IWOi0XwzqnbpavSdXplDkrVZt7tEhmNSCvbCSk6jRRSn6YOb5aFbrD6fVbbixDYXlM88qUoOrseZJU3Oilnv/ycd/OnRh/GQP3Y9WxKPWanIstt5sXkrNaflFyD/toY7Rzg3O7+pYzFZyKKSo5DZI/XOmlIefGoew94OvKSTIVZ8TvSVqKI2ybTKaG4rZ4jcH3K0t1ZrnIl62+nlWd/iOI1YRRLun3s9hs= 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: Turn isolate_lru_page() to folio_isolate_lru() and turn isolate_movable_page() to isolate_movable_folio(). Kefeng Wang (6): mm: migrate: add isolate_movable_folio() mm: memory_hotplug: use more folio in do_migrate_range() mm: remove isolate_lru_page() mm: compaction: use isolate_movable_folio() in isolate_migratepages_block() mm: memory-failure: use isolate_movable_folio() in mf_isolate_folio() mm: migrate: remove isolate_movable_page() Documentation/mm/page_migration.rst | 6 ++-- .../translations/zh_CN/mm/page_migration.rst | 6 ++-- include/linux/migrate.h | 4 +-- mm/compaction.c | 30 ++++++++--------- mm/filemap.c | 2 +- mm/folio-compat.c | 7 ---- mm/internal.h | 1 - mm/khugepaged.c | 8 ++--- mm/memory-failure.c | 4 +-- mm/memory_hotplug.c | 30 ++++++++--------- mm/migrate.c | 33 +++++++++---------- mm/migrate_device.c | 2 +- mm/swap.c | 2 +- 13 files changed, 62 insertions(+), 73 deletions(-)