From patchwork Mon Aug 26 04:01:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13777061 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 64E61C5472C for ; Mon, 26 Aug 2024 04:01:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 236866B0248; Mon, 26 Aug 2024 00:01:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1E7A66B024B; Mon, 26 Aug 2024 00:01:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 015736B035D; Mon, 26 Aug 2024 00:01:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D1C316B035B for ; Mon, 26 Aug 2024 00:01:42 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 882F5A0B8D for ; Mon, 26 Aug 2024 04:01:42 +0000 (UTC) X-FDA: 82493047644.27.B7C610A Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by imf17.hostedemail.com (Postfix) with ESMTP id 645F040009 for ; Mon, 26 Aug 2024 04:01:40 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.191 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=1724644805; 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=Oj8fQq+gzwG1OboExvIULZQoFAqjORnTXZsrLg3ZJBg=; b=4OFUnvlVSrQGIsvCDtjXP9RkieKCslPWila6fN0tLCVr19c/LxBkLw/K16CcOXfaFojnT+ TdfJLWwRXrzbx9iuQvyxoceaXV7np2sgBKo6xqV7PoSwZhgFAIv40cptO9+MrsEc2lMNe+ kCFZzB7CZ/XBWO7iDSEKeikOVsSJ7Ww= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1724644805; a=rsa-sha256; cv=none; b=7J2DPzJ63UiJqfFXMWjPqkV2Gb5ZNfkbBJtSzZrHEP58UcaXSAGIeuiRMEmHLVR5G2VSJ3 odCepFjKwb2pvhnl+hsGBt4huRJmr2G5cVtQPIYWK3/fTGto+rpbNP+UnI+3q/+wu4Lavc sU/wvYOtWrET+UnI1Urmmasv1GWuO6Q= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.191 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com Received: from mail.maildlp.com (unknown [172.19.88.163]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4WscNB6zc5z1HHMt; Mon, 26 Aug 2024 11:58:18 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id 3B5CF180044; Mon, 26 Aug 2024 12:01:36 +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 12:01:35 +0800 From: Kefeng Wang To: Andrew Morton CC: David Hildenbrand , Matthew Wilcox , Baolin Wang , Zi Yan , , Kefeng Wang Subject: [PATCH 4/4] mm: migrate: remove isolate_movable_page() Date: Mon, 26 Aug 2024 12:01:32 +0800 Message-ID: <20240826040132.1202297-5-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240826040132.1202297-1-wangkefeng.wang@huawei.com> References: <20240826040132.1202297-1-wangkefeng.wang@huawei.com> 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-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 645F040009 X-Stat-Signature: b41usnwxzpociaqmrxrpf9u1mprp6j63 X-Rspam-User: X-HE-Tag: 1724644900-510835 X-HE-Meta: U2FsdGVkX19PYkVQByoxEm26sKXS9n6Pj8xBVlGfwcVLhseBrg+fZin9uyqoVoPjd59nDPSaFqORjr+S9ifnqZ5Fs2fvCg0lTEx26H0GTzvsK6PYAB0IvaC8C+ZEzv7N8m+rpIDR2DMGJcd6BHGXsQcvf7TgIPcw+B4xtpM5hxNPGivbg1Y/NjswHIA7HnZx+r1MGmeo1iO9Ul6uD39Xz7JuMQS2zQRGn5h+fnnXCZUKHHtSyYZpwkzwjwqqHKWytShfFA1V8tSz0LZZXq/Qnl20FOB3gSPVSBClKBAea0uCagSL7Hp5fFLqY3Lnrq2DToHXTpoB19qTcfVoCoBl56jwwzEA1T7BaSU6YCPoBpL/SJZOWN3jwoa3KsfM1av1jy7oNtaevblaQN7V9ZBe8WTvSxyBgmB+cATf/8sYbsxNYRqufFm/i64LxluFQrFufIW1vKrsiMSflA0ElQIXcnjYjD/ai4U8zZUNlPOyHrzS5o/70w2oYNfmIg1JsX1oHNOjfxEIEkowKSAP32ONwxIGw8GU06I3rSoFFHDwTFhTbXufYYBdM/ldclTymru4IFrCijmd+RLgniRpQT7NWZD6udeXrF+4puJoIIGLbRZFaE5CBIzJOSoTG508Sp9MEtXXjxb8lmsG9chuH2/39UjXa7EAxidDdL0PU5BRQYA1Es9p3x7T2ctTi70o2SBBMt+NyHc61yZtdokiEWNgpUvTjZdWHyPTSgBfSkYZHyIIBG+8Y8Wq9tzhkthktvoVsh7m+6igoiNQNpEueRF/D5HB3wxHPXik3J4f1XwfHki0KaLUptR2nIbR3UCtSCrqp2pY0iFrPKYli5vfwUrC0w9/dt8N1smNe18FxixQNhPcHsmQb7rgIq3mC0b0RxVo+IT2Th3e80E+EWbasC0oM79IJVEZOkZukVv35eSPqjM+awKdp9M96dyacjBjcJfIC+SNJxjafF6yA3+ToGg fD6GMmYk tg7ZmoezY2PbKKVIgwYXEISydCN6S/zrZsqHGeABU+H/cU5Nl4KbLoqIZEXDUo6xoj/uG2Bg75QwsXxoontrvT8Z0wXxk9+XijkYcFDHgIwnqmtNASRBkk+TDwtIzqXOB+O7UDPGweODQ6pUaRQCn00eeanuXIH9fm6Ki9O9edg++YWQIf4njiA//4t0/9FAYPyie 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 0a33f751596c..dca6712b8563 100644 --- a/include/linux/migrate.h +++ b/include/linux/migrate.h @@ -69,7 +69,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); bool isolate_folio_to_list(struct folio *folio, struct list_head *list); @@ -91,8 +90,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 3d8a97b74356..5bed761b1be9 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -128,14 +128,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);