From patchwork Wed Mar 27 14:10:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13606718 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 4CB48C54E67 for ; Wed, 27 Mar 2024 14:13:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EF3846B0095; Wed, 27 Mar 2024 10:13:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E79B06B0096; Wed, 27 Mar 2024 10:13:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D411F6B0098; Wed, 27 Mar 2024 10:13:23 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id AD76C6B0096 for ; Wed, 27 Mar 2024 10:13:23 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 66E9B40111 for ; Wed, 27 Mar 2024 14:13:23 +0000 (UTC) X-FDA: 81943011486.30.E7063F4 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf28.hostedemail.com (Postfix) with ESMTP id 1FB39C0011 for ; Wed, 27 Mar 2024 14:13:20 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 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=1711548801; 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=/uUXrt6K3BPM0oU8HqR1j8Mmb0n1YcCC6d199AoQuBU=; b=HnDRXG+xtanyOR1sNRNDJHceLK6X6ggkOvKJX6xvLOY4J2mydTVJctwQrf4NaiVJU+5zQV gj8fTotXr/4UKYSGTiRM/LCIgC3mMrrNQRgJ0816mWSDlAOyJBLu/sPgnQBqqozxHypZ8O z0VNZeJOleZPKT+qyKE0ZktDAn6oMtE= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711548801; a=rsa-sha256; cv=none; b=OmlhqMOCIyqutTS4BTobqZfJsJhOl9/mXZ/z8RbQDBxmZvBF146XZ+bkQonqjkiSLGsCjq nKFBQ+W5IFEAgm6qVBegcooSBDQt+AnMicB0OZYCzhifL6TjkeHU5QlTJOUGAaUea3gODL cITMvdpcXan+YUEpSXyZkzwZNsv33g8= Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4V4T9860pXz1QBQx; Wed, 27 Mar 2024 22:10:52 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 1B83A1402C6; Wed, 27 Mar 2024 22:13:18 +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:17 +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 6/6] mm: migrate: remove isolate_movable_page() Date: Wed, 27 Mar 2024 22:10:34 +0800 Message-ID: <20240327141034.3712697-7-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240327141034.3712697-1-wangkefeng.wang@huawei.com> References: <20240327141034.3712697-1-wangkefeng.wang@huawei.com> 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: unuwbftimc5jtz1etd3ijedrdqw47e3b X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 1FB39C0011 X-HE-Tag: 1711548800-53466 X-HE-Meta: U2FsdGVkX19+XanMw1YfAVvmJLOdYSQ9tlDQLmmaUzv0JDNSHZTX74ng4N5zoKg6gtqUDOu/VXKAQKHuVv816HxQSciuo+SqRmGy+2PGsRB97E+GClKUP2gjKHYlRM3/MINU19+7xMWomLvlBgDKdDWL5Fzmb+C5wf4kiuNprD9SCJXqaQhjo62N6mbf7R+G+NHk/Z4bVGY96ur9b6h95aCgoOcL6C59j5IZmgXwcYo+RR6Z9F7lp8PGp/RWz0ARElLeMcpoAZvydeFfN5rqPBL5jdG2bHTr3BdynpGy9lNZISuN0YP0X9C8yN4sUgyG9Qu9sUwlogk0lsK7lHAvIqkp7L9MNfZkI6Zyqe0qmBfRPxbK5TTVOPb4tH8eB6hMv2xqWEStEe38cXfQ5Fv8PTZfp24NvK5RPJNn+NBaxvmR8/Dd64x8qkxSg/baYuz3l6qksq2cmx3qFAsks0Qh4178IlHTjjKthLmc3a4Pn62li64bDdYNB4Bo+BlkDlALrEfXa/p8k9n79/bkXTKg/9zRPY3r+ohQceweVwa5CAb+2Lls2YPI0KC8x5APlfj8SueYK+fVQvOehnHeJ2gjSvvrH3Ab3oOFE49AH4cICHryRfQuKd+z7Sho7OVZviOHeumzeL08KDOy8y0xZKhiy+kbZyEE83LwzhMnFO24q2b1kCSSGLlskKQg3vcIOkkdfkhRTGkyfV+U8oeHNSlT6JwZ/LatxIcjeqeKAaIgCYh1ybE0Tz2Tt/v0bO4vFxrldifvmHFkcP/+UKyYprZePcKitzjAXsmp2ld7aWAUdVhEIsENuE9+XbO9g39k6+5jwqbyHtqvM6g1CsonN+ZOboT3X1kl78APMdtAc1mZjmSY509PcQtK8kNdA3KdHjffoY3XawUyMpaFzxbnTFqzDWOPFjLVmrnR+Cry7Z9IqKZajq3Ln4lTqJQxPCdzteBswvrxgol0xOox7QbxgZa sIiFwZ22 MGznBOefPAglTeU2PLH+g7ZrClr2QqzQotx+ognQKV3DezFQg3WVHoMqE3Kh33bW47mQI8fhfBIXa/JdpNOTN1GLUMoHY+RlPfN+dPjkDKteWjaL7uMJ5zUVQOTI6ZGhqZrTGTLe/nKTrwpOI3zPGahsv4V9SUSF5TcZxCseXMDBOl3qrUfnM3eAnNHrateQW0xXs 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 a6c38ee7246a..2b680b939020 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 isolate_movable_folio(struct folio *folio, isolate_mode_t mode); int migrate_huge_page_move_mapping(struct address_space *mapping, @@ -90,8 +89,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 isolate_movable_folio(struct page *page, isolate_mode_t mode) { return false; } diff --git a/mm/migrate.c b/mm/migrate.c index b2195b6ff32c..f50ed046ede3 100644 --- a/mm/migrate.c +++ b/mm/migrate.c @@ -125,14 +125,6 @@ bool isolate_movable_folio(struct folio *folio, isolate_mode_t mode) return false; } -bool isolate_movable_page(struct page *page, isolate_mode_t mode) -{ - if (WARN_RATELIMIT(PageTail(page), "trying to isolate tail page")) - return false; - - return isolate_movable_folio((struct folio *)page, mode); -} - static void putback_movable_folio(struct folio *folio) { const struct movable_operations *mops = folio_movable_ops(folio);