From patchwork Wed Mar 15 12:32:30 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 6683
Return-Path:
Delivered-To: ouuuleilei@gmail.com
Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2321186wrd;
Wed, 15 Mar 2023 06:13:29 -0700 (PDT)
X-Google-Smtp-Source:
AK7set/Xw4S9fsPJAOCD+1/ySYcbYBjZHYua1k5Vj23pzy+CwtCy+LqXG3uMlZUh8JmKoCJVRNj6
X-Received: by 2002:a05:6a20:a121:b0:d3:6238:11c8 with SMTP id
q33-20020a056a20a12100b000d3623811c8mr15685534pzk.20.1678886009094;
Wed, 15 Mar 2023 06:13:29 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1678886009; cv=none;
d=google.com; s=arc-20160816;
b=RdzlcntM912AFpkidESBtuTs16fUM//+IpL5Gamd1YzwYENUnOk+bxzPXN5+2zUi3J
t3rMLkQmgxlCrOALM8dDkIDEx5Mw5Zdgnur0IyTZxi94oGiaBIdw6lxR3/FznyzfE/4L
YAaoS+TtTOEgzqY86gSNMla/dRb1+PC5rUpckTEvAIzMX8Q9z0sWnRi+OT2Y/yGPetd0
66kUpdMpXGeERkcvm4/W0FQVDuPhzqDrmjGxXR+1ek3p/t2XMFJUzKEkkyhLFBTdWtNg
Zir+psfIA4ZiBhGH1qPshiusjRmlk+Biirq0jI1YHB7UwZ5yFcpTojnL1yAiprmJSw97
7Vtw==
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:message-id:date:subject:cc:to:from:dkim-signature
:dkim-filter;
bh=ykKPRIypeSKVaDre01XbjaH9/YVIiqKYL9EWvo/S2nY=;
b=Ns4O0e8/NIgBcsRzE7t5bdszMuNwiIKQxWYA2GVwpbQGU/juI3Aab/QtDPy3TaXfTQ
zU8gUxtBjqr0VEv9FzYcnMHUXg874aOzpX/S1xKp/PlRWXN1TtHD7ysshD5Ss7v+PD+2
ikeegltVn1TMe5FxDIhRRuITMtTxyyS8tvEPi3d34NTIZbIlAgtSdwPejsnzga0eYFJu
GFWyqGFJSsAh6BsowVdy6qMq/f2Hgz40WNeTDoI0UEc+2QcwXzt8P5hHwt3Jci/28PMf
hHh8lkupaPDeOtTUtIiPeiJgNsT+q+H7B0bBsQA7M+nvF0zDM5pmuX4wt0lFjeg2BACd
TKbg==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b=VoKw1Tcp;
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
c38-20020a631c66000000b004d422660ffesi5063142pgm.393.2023.03.15.06.13.16;
Wed, 15 Mar 2023 06:13:29 -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=VoKw1Tcp;
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 S232696AbjCOMeS (ORCPT + 99 others);
Wed, 15 Mar 2023 08:34:18 -0400
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40180 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S232498AbjCOMeA (ORCPT
);
Wed, 15 Mar 2023 08:34:00 -0400
Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com
[210.118.77.11])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 786027A915
for ;
Wed, 15 Mar 2023 05:32:44 -0700 (PDT)
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id
20230315123236euoutp01efcaddc0a138ba71f8ec866a6eb37e33~Ml7MVHZsI2672326723euoutp01A
for ;
Wed, 15 Mar 2023 12:32:36 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com
20230315123236euoutp01efcaddc0a138ba71f8ec866a6eb37e33~Ml7MVHZsI2672326723euoutp01A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1678883556;
bh=ykKPRIypeSKVaDre01XbjaH9/YVIiqKYL9EWvo/S2nY=;
h=From:To:Cc:Subject:Date:References:From;
b=VoKw1Tcp4cjWDG2KDq6FYtdu1ywDgF0UiIGe0sZKPUTD3Z7RguFTgEOJIdf3Fj6Lp
HMmUj54qlqQBWU/zytXodhQK/PpDSc+qFIfODc+NV3WPsWot5VVZ4tKtGpuVu6xCdr
yrLSUnxbq0K38hgRS+XL/Gxkiaaoj542Yaza3DDg=
Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230315123234eucas1p2b5b92251f39ab613d887dd832d91d5e7~Ml7Ky7IgR1509115091eucas1p2r;
Wed, 15 Mar 2023 12:32:34 +0000 (GMT)
Received: from eucas1p1.samsung.com ( [182.198.249.206]) by
eusmges1new.samsung.com (EUCPMTA) with SMTP id 0C.70.09503.2EAB1146;
Wed, 15
Mar 2023 12:32:34 +0000 (GMT)
Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by
eucas1p1.samsung.com (KnoxPortal) with ESMTPA id
20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504~Ml7KWawqf2754127541eucas1p1-;
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
20230315123234eusmtrp13d1335c93e077877fca4327b447c8295~Ml7KVrG131056310563eusmtrp1t;
Wed, 15 Mar 2023 12:32:34 +0000 (GMT)
X-AuditID: cbfec7f2-e8fff7000000251f-15-6411bae22586
Received: from eusmtip1.samsung.com ( [203.254.199.221]) by
eusmgms2.samsung.com (EUCPMTA) with SMTP id EC.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
20230315123234eusmtip1ee33ed5ffeb24bba0305d7a1d80dec28~Ml7KEHbZD0648506485eusmtip1z;
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 0/3] convert page_endio to folio_endio
Date: Wed, 15 Mar 2023 13:32:30 +0100
Message-Id: <20230315123233.121593-1-p.raghav@samsung.com>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFrrHKsWRmVeSWpSXmKPExsWy7djPc7qPdgmmGEydq28xZ/0aNovVd/vZ
LF4f/sRosX/zFCaLmwd2Mlm03+1jsth7S9tiz96TLBaXd81hs7i35j+rxcn1/5ktbkx4ymix
7Ot7dovPS1vYLXZvXMRmcf7vcVaL3z/msDkI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W62Ly4NHPrSKa1FXl4PxZJc7RNk
AkNc4xQS5iuxFGckGmoxFxUnAgDOtCM3XgMAAA==
X-CMS-MailID: 20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504
X-Msg-Generator: CA
X-RootMTR: 20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504
References:
X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,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,
URIBL_BLOCKED autolearn=ham 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?1760439575984771650?=
X-GMAIL-MSGID: =?utf-8?q?1760439575984771650?=
page_endio() already works on folios by converting a page in to a folio as
the first step. This small series converts page_endio() to take a folio as
the first parameter instead of a page, and use native folio API at the
callee site to simplify the call to the converted folio_endio()
function.
mpage changes were tested with a simple boot testing. zram and orangefs is
only build tested. No functional changes were introduced as a part of
this AFAIK.
Pankaj Raghav (3):
filemap: convert page_endio to folio_endio
mpage: use bio_for_each_folio_all in mpage_end_io()
orangefs: use folio in orangefs_readahead()
drivers/block/zram/zram_drv.c | 2 +-
fs/mpage.c | 11 ++++-------
fs/orangefs/inode.c | 8 ++++----
include/linux/pagemap.h | 2 +-
mm/filemap.c | 8 +++-----
5 files changed, 13 insertions(+), 18 deletions(-)