From patchwork Thu Aug 29 14:54:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13783356 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 2099EC83F2E for ; Thu, 29 Aug 2024 14:55:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0EB2B6B008A; Thu, 29 Aug 2024 10:55:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0741D6B008C; Thu, 29 Aug 2024 10:55:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D6DF06B0093; Thu, 29 Aug 2024 10:55:07 -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 B1B696B008A for ; Thu, 29 Aug 2024 10:55:07 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 5C04B1C5B63 for ; Thu, 29 Aug 2024 14:55:07 +0000 (UTC) X-FDA: 82505580654.28.0D1CD27 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf27.hostedemail.com (Postfix) with ESMTP id 9F0A040009 for ; Thu, 29 Aug 2024 14:55:04 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf27.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=1724943284; a=rsa-sha256; cv=none; b=WqSJzoKAf3brTIXt59GaDUKpYWwO6LOfpDCiGqbNFa+xl5pEuz13ZDpEGkenCZVD+zbU4X 8WHPMIe3LcblnsTPFmYwd06D5Hg7ow/0h7eyDVjdUGi3ba23I0pJeLlUpzOhqOQddPQuUx N/rtFLQ+UK6KWEHkpeQD5bwx9ZvJhUA= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf27.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=1724943284; 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=Ce+KGWyJt8HJ6N8KXpGEkgKjw2BhgQ/uJpqNKoKnNJQ=; b=rMY6qwRVy61lLb6J3P4HVVIwi0CuJwEsv/MV0SzRlbovr1njJlMCA+/ujNZuTQl2WKSJhz 9dPCI0nW6JU//JmnoCKYF1e06TFbHKMmdTwsRaC8tM/71o+QjW+LHqSMpk5BOMftzid+CL MFg84lycJcCaka/6oaYGZrsMK9GNWxY= Received: from mail.maildlp.com (unknown [172.19.162.254]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Wvkm82h0KzLqtG; Thu, 29 Aug 2024 22:52:56 +0800 (CST) Received: from dggpemf100008.china.huawei.com (unknown [7.185.36.138]) by mail.maildlp.com (Postfix) with ESMTPS id D05AB180105; Thu, 29 Aug 2024 22:55:00 +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; Thu, 29 Aug 2024 22:55:00 +0800 From: Kefeng Wang To: Andrew Morton CC: David Hildenbrand , Matthew Wilcox , Baolin Wang , Zi Yan , Vishal Moola , , Kefeng Wang Subject: [PATCH v2 5/5] mm: migrate: remove isolate_movable_page() Date: Thu, 29 Aug 2024 22:54:56 +0800 Message-ID: <20240829145456.2591719-6-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240829145456.2591719-1-wangkefeng.wang@huawei.com> References: <20240829145456.2591719-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemf100008.china.huawei.com (7.185.36.138) X-Rspam-User: X-Rspamd-Queue-Id: 9F0A040009 X-Rspamd-Server: rspam01 X-Stat-Signature: geakbsi1jdjsfd39mohfimitbqn7ohqy X-HE-Tag: 1724943304-284607 X-HE-Meta: U2FsdGVkX1/H5I2/9QgOdbDXKpCxYgVC0AhBZqNXw71HcDiBkSVgI/9iiBz9HRfvEuAWwDv+KZCvvpMCoPKto8VoTxCDuoGUNble2FADVQG4xCkX3zH7NkEUR+MYxTgegKre7A8aa5o0IZYTLFc1pG1sqVE+Tx09cAgv0Lw//Qiy3EjXxeV1NuLTLa87PifvuhlDYRuxr4B3fl/Brhf6EMiNdDuDjkAFd97pzliZfhEgOT+zjISUbxgRDR4/PmIHJJwogbJsJvWHl2r3TBIHj81T6TTzSYtV9XuCYy+65ESwpKAq2PUemMohT5uyf5rYsztkdezkal9t7YZeHT1MPVyMg4FFxGtSDwVPQQtqeqvN7LAJcTtr2cQqRRKrdrIHUElVBL2cd2QmeRQ/fAe5v0k66zKEI4+zX59PHaKwtE0FusniO2dHUBsZi8JmuiOQKjBf4mFZQ7CrWgRQKyK2xuGy/yFOtsfFedqCYlP1/f+lRQQJ/BR0wbsj7CgY1mq2p138hU4hIEqhbpuKURrU0/WO7LOvZ4iOX51K9/NWoHk5TYwMGXGotgAzMPzePGfvVNF+CNs1C3+RJRLSeOli2astKixT+DOWKHK/PfM4NPv8q6sulJ1HW7kWgq9sG6bXg3ftGORbzAwqsuA1+fmhgA9BLxSXK5iQuBOuB6p3YuVUohUVaPiQGwp06BmSs4h5AkJQN9PsRHvvTGM5Igj1y1lHrE6/y0zy7h7iEX6tGSEaIKcQp3xrBzyJ/MsQY7wBUsK6MyVc5qYjcbU2Hicp2MVN4ZKjGPsMp1zbXKqUJdgpUKDJcHkDA6F6w1naDrrXSVx8HsvI45M87C9PhsBD0WqNLw9SMVLi38LtjjPrM4CHXAnalt5sufJsOsukjc9/+DAAHh4mJb9XP8sHdGlNht5TJGzU6Yi2TTjouVY4wPvMc+T2O2E90Y4HgwnZsV0NMDSJ3p148dWMlveEe8v A1dFoYe3 ZR0wjZCZscWWd1rOj5TwjSSCc4wzNgGcIJSX1lV5FrWaAgMJ5MHHM2w3FtNXKuZhMVkjhiNvcqGw1iKkK6dqK7saH5cHZwnrEJ4E9BREMbtugXLJTATvQWbpupbqB79wh6fWgwYHctVeKh7uwluHWTE8SHLY1eNce5lnZUf2c84tt9cpCjNFZxqXCDzaCFQG1mLmJpguVN1Gl4/DaWXrCV2JH5/CJWIK/O+IbGeSiQ1NAcrNxWkuFMGbLKR5b+RLxeeHm+lI6nmZ7boc= 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 4cac7f749620..a29f3f8f61d0 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);