From patchwork Wed Mar 15 12:32:31 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 13175777
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 4D48EC7618B
for ; Wed, 15 Mar 2023 12:32:43 +0000 (UTC)
Received: by kanga.kvack.org (Postfix)
id E44806B0078; Wed, 15 Mar 2023 08:32:41 -0400 (EDT)
Received: by kanga.kvack.org (Postfix, from userid 40)
id E13826B007B; Wed, 15 Mar 2023 08:32:41 -0400 (EDT)
X-Delivered-To: int-list-linux-mm@kvack.org
Received: by kanga.kvack.org (Postfix, from userid 63042)
id C4F5E6B007E; Wed, 15 Mar 2023 08:32:41 -0400 (EDT)
X-Delivered-To: linux-mm@kvack.org
Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com
[216.40.44.15])
by kanga.kvack.org (Postfix) with ESMTP id A4AFD6B0078
for ; Wed, 15 Mar 2023 08:32:41 -0400 (EDT)
Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1])
by unirelay01.hostedemail.com (Postfix) with ESMTP id 664151C5F4C
for ; Wed, 15 Mar 2023 12:32:41 +0000 (UTC)
X-FDA: 80571071322.13.CE0A705
Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com
[210.118.77.11])
by imf23.hostedemail.com (Postfix) with ESMTP id A29B814000F
for ; Wed, 15 Mar 2023 12:32:38 +0000 (UTC)
Authentication-Results: imf23.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b=nBeOb9g4;
spf=pass (imf23.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=1678883559;
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:dkim-signature;
bh=Dyt/yPdeYY+WSauc7HCejFF6ehE2pQBkEGu9AWh2ZjE=;
b=kwZOKHFc/tiUMrtziLwN9JD9+YOyphsxDlD0NyD0/cvoTZoAHNoqlWNMNmrcsDLRA2xGSK
uj3erifjABg0gTCeN0rPVdlcvP3ffG94CPnlmH9QQc5KtE6/FlQsXe8MCgqqvsEzlxXIjC
szsiOP1jQAKe/Z11Q0xcKAAiQ6DES0A=
ARC-Authentication-Results: i=1;
imf23.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b=nBeOb9g4;
spf=pass (imf23.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=1678883559; a=rsa-sha256;
cv=none;
b=FWByec7xjENJhdHHlqxh/h4ytZVkgzjevy71PZlCQkfX0D3P8i9ywbVBwPj/MAhubz/XWo
iYWn6nggJ+Mpw69lHD83owYKe6TrEuhhuJT3J2nzUGCISJh0UUWtIF0lR9XK9A5OnUbpQU
jxRU3UhLJZB8Om2JJpBY8gkfBJe1BCE=
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id
20230315123237euoutp012c2bb48a641e29a14fdec3ea7f498765~Ml7NA30bp2632426324euoutp01F
for ; Wed, 15 Mar 2023 12:32:37 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com
20230315123237euoutp012c2bb48a641e29a14fdec3ea7f498765~Ml7NA30bp2632426324euoutp01F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1678883557;
bh=Dyt/yPdeYY+WSauc7HCejFF6ehE2pQBkEGu9AWh2ZjE=;
h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
b=nBeOb9g47+WTg0gPxup2I2BPLrkSw+oMGg6E1+/Fv6cjB0d1wJU/olmOnbTN1+W+x
A9x8m2a9PBcQWg/2hjC09UBMDLEaQcPF6aHtaQ0OnA9qPg9NJ0uBu0Jh526Olghp1A
lJJOTS9swRM/LeXUbPt6wyEui41MZYWZWxXTMPWs=
Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230315123235eucas1p2a826de56db29b259200ca5b32853ec59~Ml7LWvFV91506715067eucas1p2v;
Wed, 15 Mar 2023 12:32:35 +0000 (GMT)
Received: from eucas1p1.samsung.com ( [182.198.249.206]) by
eusmges1new.samsung.com (EUCPMTA) with SMTP id 2D.70.09503.3EAB1146; Wed, 15
Mar 2023 12:32:35 +0000 (GMT)
Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTPA id
20230315123234eucas1p2503d83ad0180cecde02e924d7b143535~Ml7K6PVSi2825828258eucas1p2k;
Wed, 15 Mar 2023 12:32:34 +0000 (GMT)
Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by
eusmtrp1.samsung.com (KnoxPortal) with ESMTP id
20230315123234eusmtrp15eee728631fe9cf040f7e0e808da32d1~Ml7K5pMfN1056310563eusmtrp1v;
Wed, 15 Mar 2023 12:32:34 +0000 (GMT)
X-AuditID: cbfec7f2-ea5ff7000000251f-16-6411bae3a382
Received: from eusmtip1.samsung.com ( [203.254.199.221]) by
eusmgms2.samsung.com (EUCPMTA) with SMTP id 5E.AF.09583.2EAB1146; Wed, 15
Mar 2023 12:32:34 +0000 (GMT)
Received: from localhost (unknown [106.210.248.172]) by eusmtip1.samsung.com
(KnoxPortal) with ESMTPA id
20230315123234eusmtip1bb76bd37b558769186fe3dea555acaba~Ml7KooprZ1241212412eusmtip1o;
Wed, 15 Mar 2023 12:32:34 +0000 (GMT)
From: Pankaj Raghav
To: hubcap@omnibond.com, senozhatsky@chromium.org, martin@omnibond.com,
willy@infradead.org, minchan@kernel.org, viro@zeniv.linux.org.uk,
brauner@kernel.org, axboe@kernel.dk, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, gost.dev@samsung.com,
mcgrof@kernel.org, devel@lists.orangefs.org, Pankaj Raghav
Subject: [RFC PATCH 1/3] filemap: convert page_endio to folio_endio
Date: Wed, 15 Mar 2023 13:32:31 +0100
Message-Id: <20230315123233.121593-2-p.raghav@samsung.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20230315123233.121593-1-p.raghav@samsung.com>
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7djPc7qPdwmmGMz6K2YxZ/0aNovVd/vZ
LF4f/sRosX/zFCaLmwd2Mlm03+1jsth7S9tiz96TLBaXd81hs7i35j+rxcn1/5ktbkx4ymix
7Ot7dovPS1vYLXZvXMRmcf7vcVaL3z/msDkIesxuuMjisXmFlsfls6Uem1Z1snls+jSJ3ePE
jN8sHg1Tb7F5/Lp9h9Wjb8sqRo/Pm+Q8Nj15yxTAHcVlk5Kak1mWWqRvl8CVcefSF+aCX9IV
Uw42sjUw/hDrYuTkkBAwkbjVfJCli5GLQ0hgBaPEsY4JzBDOF0aJ53Mvs0M4nxklNvTPYoFp
mTSzG6plOaPEhW232SCcl4wSfzb9YO1i5OBgE9CSaOwE6xYROMMo8aRlIlgRs8B9RonrTb/Z
QUYJCzhLLPj0F8xmEVCV2L/0P9gKXgEriU8dDYwQ6+Ql9h88ywxicwpYS6xeOZ0NokZQ4uTM
J2D1zEA1zVtngx0uIbCaU2LLi59M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2c3SxcjFISSwlFFi/dRWVoiEhMTthU2MELawxJ9rXWwQRc8ZJVqmHANKcHCwCWhJNHayg8RF
BG4wSky99IsRxGEGKXp28w7YJGEBZ4kFn/6yg9gsAqoS+5f+ZwGxeQWsJD51NEBtkJfYf/As
M4jNKWAtsXrldDYQWwio5v69XUwQ9YISJ2c+AetlBqpv3jqbeQKjwCwkqVlIUgsYmVYxiqSW
Fuem5xYb6RUn5haX5qXrJefnbmIERuy2Yz+37GBc+eqj3iFGJg7GQ4wSHMxKIrzhLAIpQrwp
iZVVqUX58UWlOanFhxhNge6eyCwlmpwPTBl5JfGGZgamhiZmlgamlmbGSuK8ngUdiUIC6Ykl
qdmpqQWpRTB9TBycUg1MUzzL5sVKCv6bHXAk+mfYwtANbkc32j2bPG+jg02jlNQdjbabWW73
m3K3aXZImd9k/xB/W/vhj0lftaoc3m6fKNp910/pr1iTwb+LinF2hjXcfzX2lxt4H9GXdN6w
xvLFj9Wtc65fcn9S773j8vvKrCnyOhYxk1/OnRXhP2/GNYc79seTT59/8qOjeWXhtg0Vb609
Xt1ZvVdRTbDpHs/3aQZKp89Os7y2tkx33+OV1qKJd8NjxV98X3C17eatoIwllxOOHms28/Di
2Ln6xzTG29rzzEtPNTypPzXPKXFH9YEvrYEX9LhrHKMfTYkzmspV/eaDxvSksgxnzUy3h9Jr
S1T8vrT8/pin/y7dte+toBJLcUaioRZzUXEiAFEdsWVhAwAA
X-CMS-MailID: 20230315123234eucas1p2503d83ad0180cecde02e924d7b143535
X-Msg-Generator: CA
X-RootMTR: 20230315123234eucas1p2503d83ad0180cecde02e924d7b143535
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230315123234eucas1p2503d83ad0180cecde02e924d7b143535
References: <20230315123233.121593-1-p.raghav@samsung.com>
X-Rspam-User:
X-Rspamd-Server: rspam04
X-Rspamd-Queue-Id: A29B814000F
X-Stat-Signature: db3enywkrhk3cjq1ssunocj4fjunhsxu
X-HE-Tag: 1678883558-742289
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lv2o5lB5KgcmYDmF6hSDH3vc5UOP7sYJajNkLXlw6EJi13daTTNRi+VCoByQZVgukV+Ms5McMeX
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() already works on folios by converting a page in to a folio as
the first step. Convert page_endio to folio_endio by taking a folio as the
first parameter.
Instead of doing a page to folio conversion in the page_endio()
function, the consumers of this API do this conversion and call the
folio_endio() function in this patch.
The following patches will convert the consumers of this API to use native
folio functions to pass to folio_endio().
Signed-off-by: Pankaj Raghav
Reviewed-by: Luis Chamberlain
---
drivers/block/zram/zram_drv.c | 2 +-
fs/mpage.c | 2 +-
fs/orangefs/inode.c | 2 +-
include/linux/pagemap.h | 2 +-
mm/filemap.c | 8 +++-----
5 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index aa490da3cef2..f441251c9138 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -610,7 +610,7 @@ static void zram_page_end_io(struct bio *bio)
{
struct page *page = bio_first_page_all(bio);
- page_endio(page, op_is_write(bio_op(bio)),
+ folio_endio(page_folio(page), op_is_write(bio_op(bio)),
blk_status_to_errno(bio->bi_status));
bio_put(bio);
}
diff --git a/fs/mpage.c b/fs/mpage.c
index 22b9de5ddd68..40e86e839e77 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -50,7 +50,7 @@ static void mpage_end_io(struct bio *bio)
bio_for_each_segment_all(bv, bio, iter_all) {
struct page *page = bv->bv_page;
- page_endio(page, bio_op(bio),
+ folio_endio(page_folio(page), bio_op(bio),
blk_status_to_errno(bio->bi_status));
}
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index aefdf1d3be7c..b12d099510ea 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -276,7 +276,7 @@ static void orangefs_readahead(struct readahead_control *rac)
/* clean up. */
while ((page = readahead_page(rac))) {
- page_endio(page, false, ret);
+ folio_endio(page_folio(page), false, ret);
put_page(page);
}
}
diff --git a/include/linux/pagemap.h b/include/linux/pagemap.h
index fdcd595d2294..80eab64b834f 100644
--- a/include/linux/pagemap.h
+++ b/include/linux/pagemap.h
@@ -1076,7 +1076,7 @@ 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_endio(struct folio *folio, bool is_write, int err);
void folio_end_private_2(struct folio *folio);
void folio_wait_private_2(struct folio *folio);
diff --git a/mm/filemap.c b/mm/filemap.c
index a34abfe8c654..a89940f74974 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -1626,13 +1626,11 @@ 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
+ * After completing I/O on a folio, call this routine to update the folio
* flags appropriately
*/
-void page_endio(struct page *page, bool is_write, int err)
+void folio_endio(struct folio *folio, bool is_write, int err)
{
- struct folio *folio = page_folio(page);
-
if (!is_write) {
if (!err) {
folio_mark_uptodate(folio);
@@ -1653,7 +1651,7 @@ void page_endio(struct page *page, bool is_write, int err)
folio_end_writeback(folio);
}
}
-EXPORT_SYMBOL_GPL(page_endio);
+EXPORT_SYMBOL_GPL(folio_endio);
/**
* __folio_lock - Get a lock on the folio, assuming we need to sleep to get it.
From patchwork Wed Mar 15 12:32:32 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 13175778
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 D31BEC61DA4
for ; Wed, 15 Mar 2023 12:32:44 +0000 (UTC)
Received: by kanga.kvack.org (Postfix)
id D59386B007B; Wed, 15 Mar 2023 08:32:42 -0400 (EDT)
Received: by kanga.kvack.org (Postfix, from userid 40)
id D2FFF6B007D; Wed, 15 Mar 2023 08:32:42 -0400 (EDT)
X-Delivered-To: int-list-linux-mm@kvack.org
Received: by kanga.kvack.org (Postfix, from userid 63042)
id BA9326B007E; Wed, 15 Mar 2023 08:32:42 -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 A16506B007B
for ; Wed, 15 Mar 2023 08:32:42 -0400 (EDT)
Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1])
by unirelay06.hostedemail.com (Postfix) with ESMTP id 5D518AB4EB
for ; Wed, 15 Mar 2023 12:32:42 +0000 (UTC)
X-FDA: 80571071364.29.0854A32
Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com
[210.118.77.11])
by imf05.hostedemail.com (Postfix) with ESMTP id AA5A9100005
for ; Wed, 15 Mar 2023 12:32:39 +0000 (UTC)
Authentication-Results: imf05.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b=ax8djDHz;
spf=pass (imf05.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=1678883559;
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:dkim-signature;
bh=xHtHdDL6PMtjzG/s1BTeKZDoZWNicuamGwZqbWGaFWY=;
b=H5dROfeojCt7ysaODaZhRw0/09ZNj2MdxwBEi500JT9OdlbP71b+tKqSYAeurjGIkCvuLv
keQP4Sq0Ss9fAKqODxZwY4ua5vrtqThKStYPUvMAraLfHZMIV3gT7OomhkRDHo8W+NTXsL
aHa90mycJtRIhoqMXph7PchhemGDZQQ=
ARC-Authentication-Results: i=1;
imf05.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b=ax8djDHz;
spf=pass (imf05.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=1678883559; a=rsa-sha256;
cv=none;
b=WSYj4wF2JReVQPqGCeAIE/EHtYiH9HCnqOb6URs9GtQoE8/dGBWuYOxN421TffjDBXepxz
AsGcYZcPMU3wPbJlRjwLkZOdO3H+lUIPuYq8InBdnmYjDEiroMJifqOX+w7l9aIIydMzZz
ftjYmNpLw5QBQIRX+MSMnLUMKWSBplI=
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id
20230315123237euoutp01a9616e146dfe9071e1a08713b12fd7be~Ml7NNi83_2672326723euoutp01D
for ; Wed, 15 Mar 2023 12:32:37 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com
20230315123237euoutp01a9616e146dfe9071e1a08713b12fd7be~Ml7NNi83_2672326723euoutp01D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1678883557;
bh=xHtHdDL6PMtjzG/s1BTeKZDoZWNicuamGwZqbWGaFWY=;
h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
b=ax8djDHzSaL2h5KoBK8rAqoscnHFdpLvekOgdxRLNhFJdvc1CU+XEdZujT1yApZJr
kHnV6wwVOwl4uP6Di2aFvMjU0yWRB0/YRhHvWMJMkZU4PxscvptOypNRqC1/Oq5eG0
I+iCVezVB6IDbnkfc2g2QIEUb7Cipw9xnaVVF8sE=
Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230315123236eucas1p278affb4e64241546f64afed338efca1c~Ml7L6vXGB3026530265eucas1p21;
Wed, 15 Mar 2023 12:32:36 +0000 (GMT)
Received: from eucas1p2.samsung.com ( [182.198.249.207]) by
eusmges1new.samsung.com (EUCPMTA) with SMTP id 4F.70.09503.3EAB1146; Wed, 15
Mar 2023 12:32:35 +0000 (GMT)
Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by
eucas1p1.samsung.com (KnoxPortal) with ESMTPA id
20230315123235eucas1p1bd62cb2aab435727880769f2e57624fd~Ml7LeOs-D2051320513eucas1p16;
Wed, 15 Mar 2023 12:32:35 +0000 (GMT)
Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by
eusmtrp1.samsung.com (KnoxPortal) with ESMTP id
20230315123235eusmtrp1bdff96dbbe94408780a8ff5c68ddbd05~Ml7LdnDW41056310563eusmtrp1z;
Wed, 15 Mar 2023 12:32:35 +0000 (GMT)
X-AuditID: cbfec7f2-ea5ff7000000251f-1e-6411bae38811
Received: from eusmtip2.samsung.com ( [203.254.199.222]) by
eusmgms2.samsung.com (EUCPMTA) with SMTP id AF.AF.09583.3EAB1146; Wed, 15
Mar 2023 12:32:35 +0000 (GMT)
Received: from localhost (unknown [106.210.248.172]) by eusmtip2.samsung.com
(KnoxPortal) with ESMTPA id
20230315123235eusmtip2887f4bfaca2837bb071b662d96499d3a~Ml7LNopEC0183701837eusmtip2L;
Wed, 15 Mar 2023 12:32:35 +0000 (GMT)
From: Pankaj Raghav
To: hubcap@omnibond.com, senozhatsky@chromium.org, martin@omnibond.com,
willy@infradead.org, minchan@kernel.org, viro@zeniv.linux.org.uk,
brauner@kernel.org, axboe@kernel.dk, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, gost.dev@samsung.com,
mcgrof@kernel.org, devel@lists.orangefs.org, Pankaj Raghav
Subject: [RFC PATCH 2/3] mpage: use bio_for_each_folio_all in mpage_end_io()
Date: Wed, 15 Mar 2023 13:32:32 +0100
Message-Id: <20230315123233.121593-3-p.raghav@samsung.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20230315123233.121593-1-p.raghav@samsung.com>
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFrrLKsWRmVeSWpSXmKPExsWy7djP87qPdwmmGGzdY2ExZ/0aNovVd/vZ
LF4f/sRosX/zFCaLmwd2Mlm03+1jsth7S9tiz96TLBaXd81hs7i35j+rxcn1/5ktbkx4ymix
7Ot7dovPS1vYLXZvXMRmcf7vcVaL3z/msDkIesxuuMjisXmFlsfls6Uem1Z1snls+jSJ3ePE
jN8sHg1Tb7F5/Lp9h9Wjb8sqRo/Pm+Q8Nj15yxTAHcVlk5Kak1mWWqRvl8CVsbjnHGtBE3tF
59mrjA2Md1i7GDk5JARMJF4c3MrcxcjFISSwglHiadNeNgjnC6NE55857BDOZ0aJJ33Pgco4
wFpOvTKHiC9nlNi9+h1U0UtGiYbrm1hAitgEtCQaO8HiIgJngJpbJoKNZRa4zyhxvek3O8hy
YQEfie+LrzOB2CwCqhKvvu9gBrF5BawkbuxYwQRxoLzE/oNnweKcAtYSq1dOZ4OoEZQ4OfMJ
C4jNDFTTvHU22BMSAqs5JW5uWgT1nYvE5O9XWSBsYYlXx7ewQ9gyEqcn90DFqyWe3vgN1dzC
KNG/cz0bxJ/WEn1nckBMZgFNifW79CHKHSU2LZrCClHBJ3HjrSDECXwSk7ZNhwYQr0RHmxBE
tZLEzp9PoJZKSFxumsMCUeIh8esh6wRGxVlIfpmF5JdZCGsXMDKvYhRPLS3OTU8tNsxLLdcr
TswtLs1L10vOz93ECEyBp/8d/7SDce6rj3qHGJk4GA8xSnAwK4nwhrMIpAjxpiRWVqUW5ccX
leakFh9ilOZgURL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uu3Yzy07GFe++qh3iJGJg/EQowQHs5IIbziLQIoQ
b0piZVVqUX58UWlOavEhRlOguycyS4km5wMTRl5JvKGZgamhiZmlgamlmbGSOK9nQUeikEB6
YklqdmpqQWoRTB8TB6dUA5Ogrvrp7c5vJvz2W8954tbK9U2WAsxGDS/s2TfMZdBYeGt6+xd3
7ZUvZS4oL5k5uZV7nhKD7Q++AqVn6kUMfjvT+Qze8L64vyr7ecq6ok9ruosD1+7aVpiSlv9I
8+vLvSn9wf2SSYrzfxvyesXOmeGlZCKY1XDGQFKwfUp82/y4XDaNQ63b1+tuerWqePKTW/c9
UzSSyqV3HFEOn10nd9Byo03tifUST1/5va0Xc/57W7XuED/3ksUMh01vN5a7aAavFmzbdOSW
b2OYW8w33ugJp3fOXbdlBqtWJMsGfbGfobssDRT3MXttu9YQlDthWWXUlftH9nje4X3DIdnk
76vPyjurtO5ChbB54b1Zt5RYijMSDbWYi4oTARrtJ/1gAwAA
X-CMS-MailID: 20230315123235eucas1p1bd62cb2aab435727880769f2e57624fd
X-Msg-Generator: CA
X-RootMTR: 20230315123235eucas1p1bd62cb2aab435727880769f2e57624fd
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230315123235eucas1p1bd62cb2aab435727880769f2e57624fd
References: <20230315123233.121593-1-p.raghav@samsung.com>
X-Rspam-User:
X-Rspamd-Server: rspam03
X-Stat-Signature: b87jqdby4kzzua5grbafxnqeax86gft9
X-Rspamd-Queue-Id: AA5A9100005
X-HE-Tag: 1678883559-575327
X-HE-Meta:
U2FsdGVkX18uxTWNwa1jbM3jzQ2bH0j/X6jPIBXpZfUmwRzVPqlwaE4s71OfIGZt3rwRVw5innUBjZQnnvwGvlHJJpJvsvjoe1nU2mvbODqTduRWAWAwRDVKnFeFuqalKQ6fXcFNvL3He8N8RAjCKKgptckvqH2Yqx0DZ1+sKmSRus+r5BzZui9+RcecK7B2CG6Z06xXDUt5AjHGm4q6MInI00dczsem//JlxLBzdF3104P3poLczTDrBLiBVcwufDbWUIkBBueEetXNVYGu/TJ10iNxITUH1rbEcRvaeyiAMuuWueFFHjgnBe7xXkI+0O5HT9G9ZRjYJANl4Zv6SA7o+QO4AGEMJzh8z7Peoep01h8tuupmdRAR+8d3uWxzMA/wH9d+58RLJUkLWagpVFc/2SFygOWjj11D0GrpqrWavh+b0IUPz6PCJbS3MsTbBlZUIZ/P8ajL61f4APiVV7Tv4GrRbWB/AbZUP+NnDzalwbJbbKxjDFE35i+8F6Faj/ivpfAPYG87jFqJaIiVObIM8S56z4H8AOK59T68UcT+8CtNMM9yx77ZiqZlQqoQpUVCkq63oRIHZvLSJw0Qz2Bttt1he5fa0kvloK6WWeMR8s9v3+SQZsTWX5zS/Y2LmPZf5xabVbOJIc36ZSzmaYQ4Oc0QM8ZLqJtwHLnCzR9bBD8ytR0LgP03Ot43ZwP3EMZQqlBr8UInyZkGY3sFRAiOSiHsBeRnpY2JeB+vSTypT+82qWt4fengdm7GeJp9xHC77uJzHybyhd0P5cj5Wo6+L9JEkO7120+QbgBKl6wI3ICAckdlaUxqC8Cmvl6AcAj8CRdo8azY7AATUrQLByoZq6/jXL164xwIApMXk78+fvNIxmDhVCGwqwu2y5TJU3JrfhZwVIaftOyxiFa0C2J48MyZb2jjA2F8S3ZC1/eMBYiZWBq0zm9xPfxwyOyoaC1dyxMrGY7Yy6rjcnY
+Yejd7Xa
/GRmGzAXJGn6MUbLjK7sbF77b7kXBEXFiSn4wF0RIgXB43RVroQYKyK5ME6KIrBmF1AMxV7e0wd76V0saMqsoRQ1fAIaZBC3isg77iQHpIkNrqhzQdiqhGhDXeEBVe7/zezON0LIMCPgVSLnDN586U1tq4cobILHykMgK
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:
Use bio_for_each_folio_all to iterate through folios in a bio so that
the folios can be directly passed to the folio_endio() function.
Signed-off-by: Pankaj Raghav
Reviewed-by: Luis Chamberlain
---
fs/mpage.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/fs/mpage.c b/fs/mpage.c
index 40e86e839e77..bfcc139938a8 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -45,14 +45,11 @@
*/
static void mpage_end_io(struct bio *bio)
{
- struct bio_vec *bv;
- struct bvec_iter_all iter_all;
+ struct folio_iter fi;
- bio_for_each_segment_all(bv, bio, iter_all) {
- struct page *page = bv->bv_page;
- folio_endio(page_folio(page), bio_op(bio),
- blk_status_to_errno(bio->bi_status));
- }
+ bio_for_each_folio_all(fi, bio)
+ folio_endio(fi.folio, bio_op(bio),
+ blk_status_to_errno(bio->bi_status));
bio_put(bio);
}
From patchwork Wed Mar 15 12:32:33 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 13175779
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 B01E4C6FD1D
for ; Wed, 15 Mar 2023 12:32:46 +0000 (UTC)
Received: by kanga.kvack.org (Postfix)
id C72156B007D; Wed, 15 Mar 2023 08:32:43 -0400 (EDT)
Received: by kanga.kvack.org (Postfix, from userid 40)
id BAB2F6B007E; Wed, 15 Mar 2023 08:32:43 -0400 (EDT)
X-Delivered-To: int-list-linux-mm@kvack.org
Received: by kanga.kvack.org (Postfix, from userid 63042)
id 9FDB96B0080; Wed, 15 Mar 2023 08:32:43 -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 8B2A76B007D
for ; Wed, 15 Mar 2023 08:32:43 -0400 (EDT)
Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1])
by unirelay02.hostedemail.com (Postfix) with ESMTP id 5A292120D40
for ; Wed, 15 Mar 2023 12:32:43 +0000 (UTC)
X-FDA: 80571071406.18.CFBE94D
Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com
[210.118.77.11])
by imf09.hostedemail.com (Postfix) with ESMTP id D2781140025
for ; Wed, 15 Mar 2023 12:32:39 +0000 (UTC)
Authentication-Results: imf09.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b="WG5nv/yI";
spf=pass (imf09.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=1678883560;
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:dkim-signature;
bh=TULy0kQ0Ifdivo2QO7TanxedWWhPvjo0gfRuQDzW2ng=;
b=MUA2r0+gMJLKd+cvSEHzFvTlyXpwpbvs7Ezdz3822VBU2zDJBGauHsxgoW1/Mwa8Q1aa/3
Rb9mLTosVVP341XcBnm9rLkF/1titN4RUdNHwVTS1f8/jATs7E0HfKhCuEGE1gyWWMZU7/
sz3Njiq7QcAqjrw9n+I7sJiNrElpYUg=
ARC-Authentication-Results: i=1;
imf09.hostedemail.com;
dkim=pass header.d=samsung.com header.s=mail20170921 header.b="WG5nv/yI";
spf=pass (imf09.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=1678883560; a=rsa-sha256;
cv=none;
b=cL5wI2C+KuDhijyeOXSac1wMo9QXKn77YztOq38ajcGoOAHQWsItJpxFGUm9f82hpf89JJ
I+uiT78oecDiGmAahaMtl/gMOeFesA5lzmiyh3HBbv+12JbhyoCV9fWmphC9pL3F3qpUGD
mMsHKw3FTD/rggN2cxflMrptBqkGDnU=
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id
20230315123238euoutp01a64422437f25c84c715ed37923cb4ba0~Ml7NzIziW2676026760euoutp01F
for ; Wed, 15 Mar 2023 12:32:38 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com
20230315123238euoutp01a64422437f25c84c715ed37923cb4ba0~Ml7NzIziW2676026760euoutp01F
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1678883558;
bh=TULy0kQ0Ifdivo2QO7TanxedWWhPvjo0gfRuQDzW2ng=;
h=From:To:Cc:Subject:Date:In-Reply-To:References:From;
b=WG5nv/yIUioUZMemmI/vXGBGCC4mPMP4y7q7hrLObungT2ku5O7R3EVoS3PfQSHj3
I8MTWMnapaCRQJHG/BY21xHO7gKzTp9LHWWniksNA49VFZcApTLwGa93cuuQGrIhsO
o/AjQ5qm6e1N7LRsiufjhXZOGYU4eNMfrw8QvWkw=
Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230315123236eucas1p26b7742c95fa09b82c73c845d74efce5e~Ml7MbQpp61818518185eucas1p2w;
Wed, 15 Mar 2023 12:32:36 +0000 (GMT)
Received: from eucas1p2.samsung.com ( [182.198.249.207]) by
eusmges3new.samsung.com (EUCPMTA) with SMTP id 21.94.10014.4EAB1146; Wed, 15
Mar 2023 12:32:36 +0000 (GMT)
Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by
eucas1p1.samsung.com (KnoxPortal) with ESMTPA id
20230315123236eucas1p1116e1b8537191310bd03dd267b9f8eb8~Ml7MCxzO32770827708eucas1p15;
Wed, 15 Mar 2023 12:32:36 +0000 (GMT)
Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by
eusmtrp1.samsung.com (KnoxPortal) with ESMTP id
20230315123236eusmtrp1df4436f51fa48eb1490ddbb6b35c616f~Ml7MBtYA-1056310563eusmtrp13;
Wed, 15 Mar 2023 12:32:36 +0000 (GMT)
X-AuditID: cbfec7f5-ba1ff7000000271e-6e-6411bae42153
Received: from eusmtip2.samsung.com ( [203.254.199.222]) by
eusmgms2.samsung.com (EUCPMTA) with SMTP id D1.BF.09583.4EAB1146; Wed, 15
Mar 2023 12:32:36 +0000 (GMT)
Received: from localhost (unknown [106.210.248.172]) by eusmtip2.samsung.com
(KnoxPortal) with ESMTPA id
20230315123235eusmtip24e5b07e7103e1457f04af28b9d08add0~Ml7LyK5g50183701837eusmtip2M;
Wed, 15 Mar 2023 12:32:35 +0000 (GMT)
From: Pankaj Raghav
To: hubcap@omnibond.com, senozhatsky@chromium.org, martin@omnibond.com,
willy@infradead.org, minchan@kernel.org, viro@zeniv.linux.org.uk,
brauner@kernel.org, axboe@kernel.dk, akpm@linux-foundation.org
Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, gost.dev@samsung.com,
mcgrof@kernel.org, devel@lists.orangefs.org, Pankaj Raghav
Subject: [RFC PATCH 3/3] orangefs: use folio in orangefs_readahead()
Date: Wed, 15 Mar 2023 13:32:33 +0100
Message-Id: <20230315123233.121593-4-p.raghav@samsung.com>
X-Mailer: git-send-email 2.34.1
In-Reply-To: <20230315123233.121593-1-p.raghav@samsung.com>
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFrrDKsWRmVeSWpSXmKPExsWy7djP87pPdgmmGOz8o2gxZ/0aNovVd/vZ
LF4f/sRosX/zFCaLmwd2Mlm03+1jsth7S9tiz96TLBaXd81hs7i35j+rxcn1/5ktbkx4ymix
7Ot7dovPS1vYLXZvXMR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RdIy128XjxctblwhXHBVKOKP0bnD
HQonuJ5OM3Z2PrdSOmmjEktxRqKhFnNRcSIAw1K8PGADAAA=
X-CMS-MailID: 20230315123236eucas1p1116e1b8537191310bd03dd267b9f8eb8
X-Msg-Generator: CA
X-RootMTR: 20230315123236eucas1p1116e1b8537191310bd03dd267b9f8eb8
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230315123236eucas1p1116e1b8537191310bd03dd267b9f8eb8
References: <20230315123233.121593-1-p.raghav@samsung.com>
X-Rspamd-Server: rspam07
X-Rspamd-Queue-Id: D2781140025
X-Rspam-User:
X-Stat-Signature: gu1m1ecu1ecjqt8mhaaidep1ym87hrna
X-HE-Tag: 1678883559-794798
X-HE-Meta:
U2FsdGVkX19JHEHE8h34Zu4XFVaFvCAN8CYtU3u3+Uu7iZ7XcU8vYseE0pX3rAq6wdJdk/vIwys/yTLa7VwuM/XUFhuhL59l63U4Onj22tIIhWEj5BJF78GeCdRfL4ecB+lTktsZ/Z18ws1wJ4kUXWAedyzqLdCbeWSwWDYlHLopgzVBma8LJqpwiNtJO8FDjDbgZJOl4pIx0Z55lGIC0yKL8zKBCCdr99M8dEwBxd6hsjU36+HME43bfQDPVvTjQAzEmrZUHHvm6PHQvqzRqq3Zn0r37wSSCMZdjFMRna3geOuuNQm4ltwP4UmANXTwQLJa0fVqcNEdxxkRIVbvRqEjWu24xd+ecMrC7eCmrlS3d06YnVxKOW5kU4TcnS0OSXY8D7QteDgqd/ENwdL+jsL524FZ/F2qr3kUDJMUZ2xz1ZEL1g9kiIefs3spCotlNdrUxPYznkfY9VeQf4Xk8BKGrZBu88zN+c85kGqSXWC4kwIaFZnJo9Ei0eedTClep5qb+a6RvqFR9NNtdcU4pRQJohJSRXuDWB7KvEzSwB8RpkxvpyIa9t9JfdAR267ZrjxYvAArkP9N8Q8R4mH7uZv87qMyGrR243LEt1nWglMvDSbtXvZXseQ29Inpelrqs8r/18Ig03Hl1Kje2qa0XMxvS6pxrMhDZtyIirpHiiG+IvK0vgiDhYFtFGYcwmyhW9kd60/4mWIZX9Owj75YqL5i/nVVSOCkOVhr4XjlWkFRlD+3imob9nZXogU+FVDmF9c9kW8rrhuIXW9E8KciJFKUsWFvvc9Rov8+XQAzYbJFCFV1PuvNtYThJ1FvCY0K6kW84uZOMEvlzW09jHIvMxKJQM8vIDCma9JW9FEyrfwKqMBr5eOVDKc5cG4WM3c3EpuBR1Uxg3KEzNwmQYue7rv9wwuE5vqClQzxe0nnvALHzEfokKE1ZAnfSyImShiO1SKy6rSSC21iPQt7KTM
Sf6qsrIQ
3H9Uv1WQiLJYZXTn/n/A4l6FeL6YiaRD7QVPNRS9viDosGrVPm5fMuhMCV/g2/145j1znorqomIVwfnaq+XcS3P9Se5IFzYxmwowkjRBTUOeTYP1oOzkY4maGqd89YTGXm2IV6SKxX8B8h8mFMBGSdrnAcAaSFP83ifl3
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:
Use folio and its corresponding function in orangefs_readahead() so that
folios can be directly passed to the folio_endio().
Signed-off-by: Pankaj Raghav
Reviewed-by: Luis Chamberlain
---
fs/orangefs/inode.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c
index b12d099510ea..7e03d60bd406 100644
--- a/fs/orangefs/inode.c
+++ b/fs/orangefs/inode.c
@@ -244,7 +244,7 @@ static void orangefs_readahead(struct readahead_control *rac)
struct iov_iter iter;
struct inode *inode = rac->mapping->host;
struct xarray *i_pages;
- struct page *page;
+ struct folio *folio;
loff_t new_start = readahead_pos(rac);
int ret;
size_t new_len = 0;
@@ -275,9 +275,9 @@ static void orangefs_readahead(struct readahead_control *rac)
ret = 0;
/* clean up. */
- while ((page = readahead_page(rac))) {
- folio_endio(page_folio(page), false, ret);
- put_page(page);
+ while ((folio = readahead_folio(rac))) {
+ folio_endio(folio, false, ret);
+ folio_put(folio);
}
}