From patchwork Tue Mar 28 11:27: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: 76013
Return-Path:
Delivered-To: ouuuleilei@gmail.com
Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2146315vqo;
Tue, 28 Mar 2023 04:39:38 -0700 (PDT)
X-Google-Smtp-Source:
AKy350a/dj0SPg9nRXxdZBKN0Uot4FYrNbclZ3Rddxpc1EyPa9JCChtPJnIp2hHHoTOcauzaZddi
X-Received: by 2002:aa7:da56:0:b0:4fd:2363:16f2 with SMTP id
w22-20020aa7da56000000b004fd236316f2mr12987091eds.37.1680003578604;
Tue, 28 Mar 2023 04:39:38 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1680003578; cv=none;
d=google.com; s=arc-20160816;
b=rv7hZhj/nU5mmzVQ/ByHQFoFB0fk2oGmIecYnCqbnhHkpksU4Pxc/WeaNZ1pBOkHwy
wZxGPWSDCueD/fzf21cqKXG8EcCN30PxVbIOHjZmuUZ4HXKCmKCP7AONubeBPmhO714J
YlIbWOwnOMTa341zxnH6BDYCY80zbxTa39A4KuzINFDG2AiR02hZJm/PQzet2vAVNelX
CaTcBs6GZLUwIkrA1ZoGgQlc29vl1E7vhlvI8JZJ6f8kb1Jn2YziSY62LOpxNGMrAVx4
+WKyT3/VljPJfTjDl/TfjHh3PjVX48YPq8q0Omgle8gjPDWuwYoYJB6tifZxLPIQESBh
zJdw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=list-id:precedence:references:cms-type:content-transfer-encoding
:mime-version:in-reply-to:message-id:date:subject:cc:to:from
:dkim-signature:dkim-filter;
bh=Qd/EHq/hNi9U0eDQzSkYHva3vzVuhQ3/uVr2IhrtsQQ=;
b=Cd21zPdLcLZEtbjt9eAtwQQBdbD1FX4jJUpP3trC+hBBadx0IXgvZk0jwEg5f/naCN
ke2uHDjB6bMcpceRJrPWoKdIB4Pxa9alOBQmMbdSYTFdy9DNZCVZZGDCfX12YcOIzfO8
RxY1r1zcZItFjJKYGiDEMqNRdGIZB/1HE4qUoqt4A3XHzOnNBVIkysyTwB9AfcWjQINb
5zWqp/B2DB0PswuSIRmOfqVo/rtZcJZPZK+yTCorErpQKZ9BhjvZKmu1z98el/qd7XW+
vhisTS8mlP7BfiKNhTEG0dsnz2DZNiExdXOKeNpUop88qX30E8gz+25c2znKwldxWmyZ
0UHA==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b=drjE9jpU;
spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::1:20 as permitted sender)
smtp.mailfrom=linux-kernel-owner@vger.kernel.org;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com
Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20])
by mx.google.com with ESMTP id
n24-20020a05640206d800b004aaa505ac5fsi33741931edy.76.2023.03.28.04.39.14;
Tue, 28 Mar 2023 04:39:38 -0700 (PDT)
Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::1:20 as permitted sender)
client-ip=2620:137:e000::1:20;
Authentication-Results: mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b=drjE9jpU;
spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org
designates 2620:137:e000::1:20 as permitted sender)
smtp.mailfrom=linux-kernel-owner@vger.kernel.org;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S232644AbjC1L1p (ORCPT
+ 99 others); Tue, 28 Mar 2023 07:27:45 -0400
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42542 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S232709AbjC1L1b (ORCPT
);
Tue, 28 Mar 2023 07:27:31 -0400
Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com
[210.118.77.12])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BC4C6E95
for ;
Tue, 28 Mar 2023 04:27:29 -0700 (PDT)
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id
20230328112722euoutp028580242418e0dfe8e047d83b6004cde1~Qka8_Uya72992529925euoutp02k
for ;
Tue, 28 Mar 2023 11:27:22 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com
20230328112722euoutp028580242418e0dfe8e047d83b6004cde1~Qka8_Uya72992529925euoutp02k
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1680002842;
bh=Qd/EHq/hNi9U0eDQzSkYHva3vzVuhQ3/uVr2IhrtsQQ=;
h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
b=drjE9jpUzOwvKJrVY1iPOEPDBI27vBqwRWG6il8vuZYyNEyvF6xBLiF4Bd4xSnZkc
khY2nUF+KDemqhNUQEnNdRD902LjMfSzeHSnDrTvdNr8Q8xVYscrY9hnWflP+iFEkz
Afy6ntAMmTCyit7LuLu7bVEafMfaYQvM4EaRrdX4=
Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230328112721eucas1p29c3e5a9281c3f21042a2ffafdd0866eb~Qka7TOoBk2371323713eucas1p2a;
Tue, 28 Mar 2023 11:27:21 +0000 (GMT)
Received: from eucas1p1.samsung.com ( [182.198.249.206]) by
eusmges1new.samsung.com (EUCPMTA) with SMTP id 38.51.09503.81FC2246;
Tue, 28
Mar 2023 12:27:20 +0100 (BST)
Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTPA id
20230328112720eucas1p2bbb42b49da00b4f2299049bf6bafce48~Qka65Z-hg0535105351eucas1p2X;
Tue, 28 Mar 2023 11:27:20 +0000 (GMT)
Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by
eusmtrp2.samsung.com (KnoxPortal) with ESMTP id
20230328112720eusmtrp2ce3dc34f33115a65d99589fcad9b4c0a~Qka63UKs50134701347eusmtrp2U;
Tue, 28 Mar 2023 11:27:20 +0000 (GMT)
X-AuditID: cbfec7f2-e8fff7000000251f-80-6422cf18967a
Received: from eusmtip2.samsung.com ( [203.254.199.222]) by
eusmgms2.samsung.com (EUCPMTA) with SMTP id A0.81.09583.81FC2246;
Tue, 28
Mar 2023 12:27:20 +0100 (BST)
Received: from localhost (unknown [106.210.248.108]) by eusmtip2.samsung.com
(KnoxPortal) with ESMTPA id
20230328112720eusmtip2188f4b42b34ffb070ff5ffc1e476b9e4~Qka6sYigr0132101321eusmtip28;
Tue, 28 Mar 2023 11:27:20 +0000 (GMT)
From: Pankaj Raghav
To: martin@omnibond.com, axboe@kernel.dk, minchan@kernel.org,
akpm@linux-foundation.org, hubcap@omnibond.com,
willy@infradead.org, viro@zeniv.linux.org.uk,
senozhatsky@chromium.org, brauner@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
mcgrof@kernel.org, linux-block@vger.kernel.org,
gost.dev@samsung.com, linux-mm@kvack.org, devel@lists.orangefs.org,
Pankaj Raghav
Subject: [PATCH 5/5] filemap: remove page_endio()
Date: Tue, 28 Mar 2023 13:27:16 +0200
Message-Id: <20230328112716.50120-6-p.raghav@samsung.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20230328112716.50120-1-p.raghav@samsung.com>
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFrrLKsWRmVeSWpSXmKPExsWy7djPc7oS55VSDN5ftLaYs34Nm8Xqu/1s
Fq8Pf2K02L95CpPFzQM7mSza7/YxWey9pW2xZ+9JFovLu+awWdxb85/V4uT6/8wWNyY8ZbR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vAnqo+XBObzHa0+/fCj1INph7ZkXOlVZA5+Gn9ONL51BssFI/0Gsdvn4yXm2Ga0MQvP
2xTsycD/VbS//bH6rMJ0JZbijERDLeai4kQAvVarymADAAA=
X-CMS-MailID: 20230328112720eucas1p2bbb42b49da00b4f2299049bf6bafce48
X-Msg-Generator: CA
X-RootMTR: 20230328112720eucas1p2bbb42b49da00b4f2299049bf6bafce48
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230328112720eucas1p2bbb42b49da00b4f2299049bf6bafce48
References: <20230328112716.50120-1-p.raghav@samsung.com>
X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,
RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS
autolearn=unavailable autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
lindbergh.monkeyblade.net
Precedence: bulk
List-ID:
X-Mailing-List: linux-kernel@vger.kernel.org
X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?=
X-GMAIL-THRID: =?utf-8?q?1761611432655969364?=
X-GMAIL-MSGID: =?utf-8?q?1761611432655969364?=
page_endio() is not used anymore. Remove it.
Signed-off-by: Pankaj Raghav
---
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 fdcd595d2294..73ee6ead90dd 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -1076,8 +1076,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 6f3a7e53fccf..a770a207825d 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1625,36 +1625,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