From patchwork Wed May 10 12:47:16 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 13236905
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 DB539C7EE22
for ; Wed, 10 May 2023 12:47:25 +0000 (UTC)
Received: by kanga.kvack.org (Postfix)
id 1F9A96B0071; Wed, 10 May 2023 08:47:25 -0400 (EDT)
Received: by kanga.kvack.org (Postfix, from userid 40)
id 1A9A46B0072; Wed, 10 May 2023 08:47:25 -0400 (EDT)
X-Delivered-To: int-list-linux-mm@kvack.org
Received: by kanga.kvack.org (Postfix, from userid 63042)
id 04BA26B0074; Wed, 10 May 2023 08:47:25 -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 EA1676B0071
for ; Wed, 10 May 2023 08:47:24 -0400 (EDT)
Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1])
by unirelay09.hostedemail.com (Postfix) with ESMTP id A346A809FF
for ; Wed, 10 May 2023 12:47:24 +0000 (UTC)
X-FDA: 80774321208.03.6B6EFB5
Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com
[210.118.77.11])
by imf25.hostedemail.com (Postfix) with ESMTP id 84C04A0011
for ; Wed, 10 May 2023 12:47:21 +0000 (UTC)
Authentication-Results: imf25.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b=eSTTAIB5;
spf=pass (imf25.hostedemail.com: domain of p.raghav@samsung.com designates
210.118.77.11 as permitted sender) smtp.mailfrom=p.raghav@samsung.com;
dmarc=pass (policy=none) header.from=samsung.com
ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1683722842; a=rsa-sha256;
cv=none;
b=njjz6DMZiT6kpxz0nT5CQNrg52nRoumKmb1L7CjDJZfCEJFi0uNOqA4mJPRMuRpD6g3p8m
3qzwsOdf6p2SrBKRUTyhjJSD47D6J6uUewGMvxxtfzXrR0T5hR9fFb0YEsd9HuFMoud/Wy
F1J19rkxa0sipyRGrSUWshugPP64O1A=
ARC-Authentication-Results: i=1;
imf25.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b=eSTTAIB5;
spf=pass (imf25.hostedemail.com: domain of p.raghav@samsung.com designates
210.118.77.11 as permitted sender) smtp.mailfrom=p.raghav@samsung.com;
dmarc=pass (policy=none) header.from=samsung.com
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
d=hostedemail.com;
s=arc-20220608; t=1683722842;
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:references:dkim-signature;
bh=yQDc+kOAIE1uNanTmn5CeXJvT/CwzXTmmHedSea//Uo=;
b=Zi0VP+aY2zrUw/rE9OyQ1H449XkFI1mmdFstkcyOOSSFbqmIbPQhX/qg5KHW0lgPE01Qjw
ha9lgGCQwpwWYiJ3aIXMeCguYr8u3b1TfHTCtxlsbhukmpCTcbdfKPmPkF+xiluBRgcFXe
1uDuX9ORrm+JHyFE9OxxNxSxEIKyNIw=
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id
20230510124718euoutp019048b1bd84517f0ecf59a695c76c1f28~dyQBRMWu82205122051euoutp01N
for ; Wed, 10 May 2023 12:47:18 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com
20230510124718euoutp019048b1bd84517f0ecf59a695c76c1f28~dyQBRMWu82205122051euoutp01N
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1683722838;
bh=yQDc+kOAIE1uNanTmn5CeXJvT/CwzXTmmHedSea//Uo=;
h=From:To:CC:Subject:Date:References:From;
b=eSTTAIB5kqSTxT7v04TOlT9/xsxst1tv+Zi9ULD1W4cDKkc5rRqKBLyPWthD1tFiD
slzLujoKXLZUa07o8YsahdzNly59EeOw2FEkF6n6+0hbsXPhdLPapFbew5f4iaxiN8
vASZmJHQNNUtI58sm/4s1iphHe3PNAe4jLvnm4FA=
Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230510124718eucas1p27dbb62ec37e4b792da0792086e25ad44~dyQBEgi381889318893eucas1p2X;
Wed, 10 May 2023 12:47:18 +0000 (GMT)
Received: from eucas1p1.samsung.com ( [182.198.249.206]) by
eusmges3new.samsung.com (EUCPMTA) with SMTP id D4.B0.37758.6529B546; Wed, 10
May 2023 13:47:18 +0100 (BST)
Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTPA id
20230510124718eucas1p2c11356c0628b9acb44c1174fd45fa4b7~dyQAzGl210656906569eucas1p2H;
Wed, 10 May 2023 12:47:18 +0000 (GMT)
Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by
eusmtrp1.samsung.com (KnoxPortal) with ESMTP id
20230510124718eusmtrp1a9a5b4d229ef743b661ca6312ca141ea~dyQAyhyG11062210622eusmtrp1N;
Wed, 10 May 2023 12:47:18 +0000 (GMT)
X-AuditID: cbfec7f5-815ff7000002937e-a5-645b9256a229
Received: from eusmtip1.samsung.com ( [203.254.199.221]) by
eusmgms1.samsung.com (EUCPMTA) with SMTP id 27.0E.10549.6529B546; Wed, 10
May 2023 13:47:18 +0100 (BST)
Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by
eusmtip1.samsung.com (KnoxPortal) with ESMTPA id
20230510124718eusmtip1828a062b2bf069822ad464c0bb21f720~dyQAoRHU41816218162eusmtip1u;
Wed, 10 May 2023 12:47:18 +0000 (GMT)
Received: from localhost (106.110.32.140) by CAMSVWEXC02.scsc.local
(2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2;
Wed, 10 May 2023 13:47:17 +0100
From: Pankaj Raghav
To: ,
CC: , , ,
, ,
, Pankaj Raghav
Subject: [PATCH] filemap: remove page_endio()
Date: Wed, 10 May 2023 14:47:16 +0200
Message-ID: <20230510124716.73655-1-p.raghav@samsung.com>
X-Mailer: git-send-email 2.39.2
MIME-Version: 1.0
X-Originating-IP: [106.110.32.140]
X-ClientProxiedBy: CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) To
CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348)
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFprOKsWRmVeSWpSXmKPExsWy7djPc7phk6JTDP4cU7WYs34Nm8XK1UeZ
LPbsPclicXnXHDaLe2v+s1rcmPCU0eL3jzlsDuwem1doeWxa1cnmsenTJHaPEzN+s3jsvtnA
5vF5k1wAWxSXTUpqTmZZapG+XQJXxqPJ55kLXvBXzHrSxtLA+Jeni5GTQ0LARKKh9zNbFyMX
h5DACkaJ9gdH2SGcL4wSs98sY4JwPjNKdMzYzQjTsvzoP6jEckaJvu/H2OCq5s99DpXZwigx
ceJR1i5GDg42AS2Jxk52kG4RATOJjQ+OMILUMAvsAxp75SIzSEJYQFdi5c8mVhCbRUBV4s7P
XywgNq+ApUTLknawORIC8hKLH0hAhAUlTs58AlbCDBRu3jqbGcKWkDj44gUzxKVKEg2bz7BA
2LUSe5sPgP0mIXCHQ+Jt30tWiISLxJNrk5ggbGGJV8e3sEPYMhKnJ/dANVdLPL3xmxmiuYVR
on/nejaIg6wl+s7kQNQ4Stxo+wh1J5/EjbeCEPfwSUzaNp0ZIswr0dEmBFGtJrH63huWCYzK
s5B8MwvJN7OQfLOAkXkVo3hqaXFuemqxcV5quV5xYm5xaV66XnJ+7iZG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givd2hUihBvSmJl
VWpRfnxRaU5q8SFGU6B3JjJLiSbnA2M8ryTe0MzA1NDEzNLA1NLMWEmc17OgI1FIID2xJDU7
NbUgtQimj4mDU6qBqXJ25HWjyReSav9GXDrYat24Mrdy2RUNls0HmyXnrDN59OFyyfYcb4v5
Mtf+7u9ftu1sQ5/ceqa7sWmX14mIntSTLjjHKrORuyzhkOR20bTvQW7/L2+V1Ki+dtTaaLfG
aRvmK4LpE1TXl5grbXl/rMgsJZBrg6jdMtbajCALg69FsZMEzvsfUpPV1C5xbH3UnHHmwYdz
N/bN0Vjuz35f56zAqis7Nqxfp2hfHJQgHNrzOIovimuvmojkrLbYFRFCXFdCPjNGSDHtXuff
OvuDIfPtDT6TTp7TaH3/Zm7T6w8GLPyOL3bmhx5dtGaB0G8Jne0xKl51RV/3rv0VqLDi1Rq/
JZzsen0X0mb8sa3ap8RSnJFoqMVcVJwIAD8TcA45AwAA
X-CMS-MailID: 20230510124718eucas1p2c11356c0628b9acb44c1174fd45fa4b7
X-Msg-Generator: CA
X-RootMTR: 20230510124718eucas1p2c11356c0628b9acb44c1174fd45fa4b7
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230510124718eucas1p2c11356c0628b9acb44c1174fd45fa4b7
References:
X-Rspam-User:
X-Stat-Signature: dryg1a843rx17hkn6ittgmzp1e5irtdc
X-Rspamd-Server: rspam08
X-Rspamd-Queue-Id: 84C04A0011
X-HE-Tag: 1683722841-997320
X-HE-Meta:
U2FsdGVkX19/tNl1NKkBjqupwdpgQU5JaebItG7dKXA5ZmhtqXcSYd/au1jj4JiCkKkraQTCGh9+NaSyGO8frgmsRc1kKLo3ti5YOaQUCaHPD6rngoMaKfqxKOH1XKn+JXju8c4p+rCH8o7p+og3RgGhfBtHiVvBNs2RVLlTpq2CCZ23DSdrrEYdTUSHItOPGVHTAdDdqiDB7uDg60zR82vchKh+brOGIUwhxLT8MYxuPg3Y8iiZPMpaQgF5k3sCgmsQ8+gh4ak2LsoLZgdxHWJdWwEd22/J+Jn3hGc0cYAsdUC6DaYl03+9f0kzVMlqOlE/SGnSvqsQdDMe7n049FKuwHbWwqgzWAtG1G35KiKhFtrqqWGrRsYcIMlpHuDlqD0tFXrcbKYccgEieCs/1rJXP9lD01ZjVgHdAcVV9x/UFltuAh/GzW+Vgu64aB0CZTnfI7RT1WdYzHPAH2FiSefC12PLTDygkzCuyqikSYpOA3vJRTBqYc4pMv03oZidlUTpx1uKAwuo8Pl32jWFYpK2HmvJ9NaOvcKEDlmNiSxXFtsIjtCYAtyleBTgBknuSRXPpw3QNuuqpj0nx3GdMkIu726jh/vXiGvpDZEQKgsoNaagE5m3p9ZQVefJLUboznsrV3uYVE5ujUXsitfMV0c1oDMQj1eaYLQtN6JXFNoiE231jyzFjyzJBmEhVwNe8QbAztBzRwLArjsdvm439NlIWy+Ok6/ftyLmzsJ7xhUvDx6rid6SovtvIaBjZHiO1ByE5XUcoQAn6a5k04J5f9A1o3jCZ//ySp8GTiS51+Jj9GQgCu6dWZV68YP2jTKzU7T5UEsmUZA3XHTe/NuW8Tt1EQDCcbIqaiKd9yDqygN+buv8WwdL09k5HdgMelwMVvqKVBtK3Gdc5WWBwtoXl6dFO7siKk/bzUpP32dv2kNdLGp9srHMyScbvFx7Ra61HS3M+zpUlCxRRo907bV
UT4gS52Q
FloE6Nd3HhI1l1WVAKWj3uXthVTuajPGjHeN/fSnhMXVXfYUAKKakLZO6LgqgXTDQvDPf3Z6XH9G1UbtJpap7MbTg4hLiwakzg7XymJBqZy6KqQc8ygIj0ab9mYMcrz1HFyjFOjGHb2a7qOB8LvcmqP3j0m2TsztwFAxeiyfgboFkbODnMcaL0WTPzqNIWXcztsAN0PNquVdVbJ4=
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:
page_endio() is not used anymore. Remove it.
Signed-off-by: Pankaj Raghav
Reviewed-by: Christoph Hellwig
Acked-by: Matthew Wilcox (Oracle)
---
This is a leftover patch from [1]. As ZRAM page_endio usage has been
removed, this patch can be merged safely.
[1]https://lore.kernel.org/linux-fsdevel/20230411122920.30134-1-p.raghav@samsung.com/
include/linux/pagemap.h | 2 --
mm/filemap.c | 30 ------------------------------
2 files changed, 32 deletions(-)
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index a56308a9d1a4..c1ae5ebc375f 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -1078,8 +1078,6 @@ int filemap_migrate_folio(struct address_space *mapping, struct folio *dst,
#else
#define filemap_migrate_folio NULL
#endif
-void page_endio(struct page *page, bool is_write, int err);
-
void folio_end_private_2(struct folio *folio);
void folio_wait_private_2(struct folio *folio);
int folio_wait_private_2_killable(struct folio *folio);
diff --git a/mm/filemap.c b/mm/filemap.c
index 2d3d70c64dfd..570bc8c3db87 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1628,36 +1628,6 @@ void folio_end_writeback(struct folio *folio)
}
EXPORT_SYMBOL(folio_end_writeback);
-/*
- * After completing I/O on a page, call this routine to update the page
- * flags appropriately
- */
-void page_endio(struct page *page, bool is_write, int err)
-{
- struct folio *folio = page_folio(page);
-
- if (!is_write) {
- if (!err) {
- folio_mark_uptodate(folio);
- } else {
- folio_clear_uptodate(folio);
- folio_set_error(folio);
- }
- folio_unlock(folio);
- } else {
- if (err) {
- struct address_space *mapping;
-
- folio_set_error(folio);
- mapping = folio_mapping(folio);
- if (mapping)
- mapping_set_error(mapping, err);
- }
- folio_end_writeback(folio);
- }
-}
-EXPORT_SYMBOL_GPL(page_endio);
-
/**
* __folio_lock - Get a lock on the folio, assuming we need to sleep to get it.
* @folio: The folio to lock