From patchwork Wed Mar 27 14:30:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13606742 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 E3C36C47DD9 for ; Wed, 27 Mar 2024 14:33:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 818E26B0087; Wed, 27 Mar 2024 10:33:08 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7A20D6B0096; Wed, 27 Mar 2024 10:33:08 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 645256B0098; Wed, 27 Mar 2024 10:33:08 -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 456256B0087 for ; Wed, 27 Mar 2024 10:33:08 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 149BCC0E5B for ; Wed, 27 Mar 2024 14:33:08 +0000 (UTC) X-FDA: 81943061256.03.A598EB5 Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by imf02.hostedemail.com (Postfix) with ESMTP id EFAC280005 for ; Wed, 27 Mar 2024 14:33:04 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf02.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.32 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1711549985; a=rsa-sha256; cv=none; b=l/DRRq8BEHa1IByEJBeOcuvRCi1HZaI6j7dlcqqlANmE3NkfXaJxxPrAoJD79dQXkWCyyl xXYZbduePGeyehQN7KVPuy/DAI34YSa03I0ylPRbaK7dZsnaSiZPYBXN7g665GTBD0AcwC INQc5OBIUIadpgXy8mj+t+K0ek4ZkHw= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf02.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.32 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=1711549985; 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=7xEf/1n7O7+4+DRBu2Cl3vWbm9qPePKgGg6LlJZNCtA=; b=D2u5vtMXBSd4BeW5Gl7i1Y/bP8+s67Ps5NqcsMJfshGLTGgbi6LlYpK2lyXzsRlWxBVJTl SEHfW72gO7qbwK3u/wfiVxaQM2hws3ONfKWkJ1GLV9SfaYPSD7/oVwXM1TMum1ke0tezAG 2CJRIfiIf/0L2Bned3CdSb2SbjMeK7k= Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4V4Tdk6JRWz1wnLT; Wed, 27 Mar 2024 22:32:10 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 4752F1400C8; Wed, 27 Mar 2024 22:33:00 +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:32:59 +0800 From: Kefeng Wang To: , Andrew Morton CC: , , Kefeng Wang Subject: [PATCH] mm: remove __set_page_dirty_nobuffers() Date: Wed, 27 Mar 2024 22:30:08 +0800 Message-ID: <20240327143008.3739435-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-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: EFAC280005 X-Stat-Signature: hj6zet7939p5ama4sbwi4immzqn856xs X-Rspam-User: X-HE-Tag: 1711549984-728041 X-HE-Meta: U2FsdGVkX18XW3W1OhR3lBx66l/o9IZo4oRNMF3DCvpuz4ARLwxfb69YMCJNRyz5c32A7pQrHbRYCxlg+T4mNAw3krWjNGnH0VAHXZmJC9XpoXygyFiT+TnLHV9aj+2M3CmEiufwo0q5VUp9tUB3eGqzH3XhDT2fKd+fhQbEemNK/TMcFUWjoeK98b8uXa9l54JZ2KmN9ab757XM4QIQ3jwwcWUZLSWyGn0J7/hohbGdb1v1Adwd1cbo0YrllGdSy99P+d20Xz9JZjAHORStbiypS7YycJ1QP/WD4V2m36yo/G7BtCpvLbJbrl7oga5DKg+dJ9CXj/lsNrJc9YCGLmxGoHjP2eKGBBhkIpe2/fyDiTNla37X6LTI7gRC81XtDzBtLPU7Hr69IgttKMeKmOmEvbupPDjEZ+ek25w/IYmHB13cXIhvknyZPZ8QLX8ueT+wyA7a0QGBJlTsTClcGrTsJnYjO5zv6ezfuzm4aL9U4X3tBpp5vQC9Fq4ZPo/6z3gU6+FtuPbne3OCKUwDY3rZKNjPwD6G755wzPy1sYopxVbG3V41hIcARbPtOGkiIT973hrSpVYRhI7MMAO0vTE8xQsjJakKp/ruRztW6Itu27wXjwReH5lJq8M04V2wUT7SkTEz42OLxOAP43pwCBaLVHpqT9P5y226kLrPZyk351Tria/cGMuCxpt9kQ2waFyL3lU6M0sgeaRXVZxluzYf1tjbfV7VLjJdAoyqdvRyp4zCntJuJJLcHPCv1bW08LAO8xN/BqWRkp0EBDSFvvcpqBSauKAAMxNNIgidA3YGU+arzqqY2/GrtqFF2ZPiKa7Bs0HMOs/ADFehbLGB0jkyt8QP4jC5Oyxfn69Kunp/3rCshgPpYifONEAMm/rZJtO+Gu7U54QfJHAh5T4S91/fNubbfX+O580eSrgUD2LbZtWnDp/XOaxf5vHLhTvB52XMk6ZwMzMrEL24igu C1DiuAFS iufRFiz7zys9k/kakiMavUnkTes+a6sbVmi9yqpIXc+X0InJJCIvXN5DczRf6i7iHHpu4g44b+lYMW9X3ye2tF1MyQW7oIHEMKddLc9SCZ0I4tGFVnu7hmuyUhf4zChf4hSiyldExg6xu87ear6Jys7q9RMUch3RJEaqO7R9lVjrQm63i1PRvvaUd8Q== 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 __set_page_dirty_nobuffers(), remove it. Signed-off-by: Kefeng Wang Reviewed-by: Matthew Wilcox (Oracle) Reviewed-by: Vishal Moola (Oracle) --- include/linux/pagemap.h | 1 - mm/folio-compat.c | 6 ------ 2 files changed, 7 deletions(-) diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h index 35636e67e2e1..9e988f6f0bb0 100644 --- a/include/linux/pagemap.h +++ b/include/linux/pagemap.h @@ -1163,7 +1163,6 @@ static inline void folio_cancel_dirty(struct folio *folio) bool folio_clear_dirty_for_io(struct folio *folio); bool clear_page_dirty_for_io(struct page *page); void folio_invalidate(struct folio *folio, size_t offset, size_t length); -int __set_page_dirty_nobuffers(struct page *page); bool noop_dirty_folio(struct address_space *mapping, struct folio *folio); #ifdef CONFIG_MIGRATION diff --git a/mm/folio-compat.c b/mm/folio-compat.c index 50412014f16f..f31e0ce65b11 100644 --- a/mm/folio-compat.c +++ b/mm/folio-compat.c @@ -58,12 +58,6 @@ bool set_page_dirty(struct page *page) } EXPORT_SYMBOL(set_page_dirty); -int __set_page_dirty_nobuffers(struct page *page) -{ - return filemap_dirty_folio(page_mapping(page), page_folio(page)); -} -EXPORT_SYMBOL(__set_page_dirty_nobuffers); - bool clear_page_dirty_for_io(struct page *page) { return folio_clear_dirty_for_io(page_folio(page));