From patchwork Thu Apr 25 08:40:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13642971 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 72985C4345F for ; Thu, 25 Apr 2024 08:41:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BC14C6B0093; Thu, 25 Apr 2024 04:40:57 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B709B6B0095; Thu, 25 Apr 2024 04:40:57 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A11146B0096; Thu, 25 Apr 2024 04:40:57 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 7E8396B0093 for ; Thu, 25 Apr 2024 04:40:57 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 2A3408045C for ; Thu, 25 Apr 2024 08:40:57 +0000 (UTC) X-FDA: 82047408954.04.5E5136F Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf12.hostedemail.com (Postfix) with ESMTP id 2BFE440014 for ; Thu, 25 Apr 2024 08:40:54 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.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=1714034455; 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:in-reply-to:references:references; bh=1wqZSe1foLHx1sU7xYCCg5lvuRL3RZDuMUxX3J9x378=; b=z5dqWGfwuYduNcqrhwCrt3chgoVJWTL1kdP6MHTQNJ6Hr7pqjKW11eviT4oyoLuj99547K 4/vAzkH4XvZhYKICBJZp13h8Mvxw50ynG+TibivaIiLqAzBAyc8waH27WOU9rmsKNrArCD RxM9VJs25BkSMU8YwFUsJktDBD88/R8= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714034455; a=rsa-sha256; cv=none; b=aakLZmcFpbfdaxUJ0Aa11lcC1Yvb2jRL916gmOgxJTNS+bzBNZ0yncf7l9VgFTNCz5KVdT 8uJs3oqcSIhSzYOTKA98Jcr9ssodx6nrhIe7/vrYZA5X/XLAGdsP6COZdPbDjh3f/tF5SM qkWdyCMEfOptUWpXyOtP398P10Yxrvw= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VQ8Nx66YTzXmVn; Thu, 25 Apr 2024 16:37:21 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id B185A1401E9; Thu, 25 Apr 2024 16:40:52 +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; Thu, 25 Apr 2024 16:40:52 +0800 From: Kefeng Wang To: Andrew Morton CC: , David Hildenbrand , Miaohe Lin , Naoya Horiguchi , Oscar Salvador , Zi Yan , Hugh Dickins , Jonathan Corbet , , Vishal Moola , Kefeng Wang Subject: [PATCH v2 08/10] mm: migrate: remove isolate_movable_page() Date: Thu, 25 Apr 2024 16:40:26 +0800 Message-ID: <20240425084028.3888403-9-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240425084028.3888403-1-wangkefeng.wang@huawei.com> References: <20240425084028.3888403-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm100001.china.huawei.com (7.185.36.93) X-Stat-Signature: kn8c1unpx31prynr67ufoo5maqudd8jf X-Rspamd-Queue-Id: 2BFE440014 X-Rspamd-Server: rspam06 X-Rspam-User: X-HE-Tag: 1714034454-186944 X-HE-Meta: U2FsdGVkX1+RbgQrvhxuPgO1WpP6bvypL6u/ZEv+xbGUf8CBJXNRXQGRKsAe6hVn/YA/tA+wuTVrjSR27+0d34FR029DnZEAST0qbazlAIJ7tL3i3gEjbldgsiLxPOj2HMX/8DuJtfqFJLn2Ab465bnWB2fgzu6pmHLaSPa8PlVcxCddR/0wyfFQAdp40X+ong8q+05/lRPYxtCUcZrr4edOTQec2CcZFEAMCnhj7fKyXdI/kp3bTy6WqQF/2nQbstGpGD9q1hD7ZzUkWQeV35tSJhd1PiEh6YrtiTNYEKssX+pc0S6NTxC3lkS6keVoB/g2LOrAoTupTg8ui44jW3F1LW32D+v5Z/il76T7d3LxFalDe/wcBl4Cwd/aXIcB9u5zAryWFGuzTJ1i1Zz8msd4dcLQKEe9fF/4z+OGJdaM1JfyysCxcl9dIeTnwLL/M9OhAJgoBGj/6ZmK22u7catIbQTG1X1CLjFCNXeHJSoF3yeBAHf3Z4V+wS5xDpc08bCQfU5A0RgIPWTM27uK0+17vjHXuaP8iCbE4pmG9jyZ/FeiF/kfhUpKdxLlo3nwIaQHO+0Ds0MQ7XS2X+za4Vgv9T0jc6e5qYl1oitZ0dTLmGq93jeKwXZr69IcIHxy0aVGdCUCPHh/LMGyPTIw3xtmyVER5gQVLlz+2tw5cSl7hZkuniqQlaYTZ7g11PhwncBCy2a8ERFLd26GtRe80Hgdz7DwM5WmUBgBFQQJRaJxOcmMq/41muvT+LH2IvfG0rlNPjEsgu4ueT+tl0Kw6gGa+7bvl0osU16h+YivuO/+xNBA2dZjEMPN0ygkgm2qOxPmMS0+tPzKCmu+lMOyHELzClaoECbo2EZtq74mBywNMRMQ1gVft9eZFLGi8K8nMzeTYoz5spJl8gaZrqelGQJGbGyuOcrERKpWPVJcum7J2P9d9o1yMKNtP5Hq4wqPmCn40aNGFsor1maRqJB 8Ig== 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: There are no more callers of isolate_movable_page(), remove it. Signed-off-by: Kefeng Wang --- include/linux/migrate.h | 3 --- mm/migrate.c | 8 -------- 2 files changed, 11 deletions(-) diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 4f1bad4379d3..938efa2fd6d7 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -71,7 +71,6 @@ int migrate_pages(struct list_head *l, new_folio_t new, free_folio_t free, unsigned long private, enum migrate_mode mode, int reason, unsigned int *ret_succeeded); struct folio *alloc_migration_target(struct folio *src, unsigned long private); -bool isolate_movable_page(struct page *page, isolate_mode_t mode); bool folio_isolate_movable(struct folio *folio, isolate_mode_t mode); int migrate_huge_page_move_mapping(struct address_space *mapping, @@ -93,8 +92,6 @@ static inline int migrate_pages(struct list_head *l, new_folio_t new, static inline struct folio *alloc_migration_target(struct folio *src, unsigned long private) { return NULL; } -static inline bool isolate_movable_page(struct page *page, isolate_mode_t mode) - { return false; } static inline bool folio_isolate_movable(struct folio *folio, isolate_mode_t mode) { return false; } diff --git a/mm/migrate.c b/mm/migrate.c index 3d56604594bb..4fbc7ff39da3 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -127,14 +127,6 @@ bool folio_isolate_movable(struct folio *folio, isolate_mode_t mode) return false; } -bool isolate_movable_page(struct page *page, isolate_mode_t mode) -{ - if (PageTail(page)) - return false; - - return folio_isolate_movable((struct folio *)page, mode); -} - static void putback_movable_folio(struct folio *folio) { const struct movable_operations *mops = folio_movable_ops(folio);