From patchwork Wed Mar 22 13:50:08 2023
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Pankaj Raghav
X-Patchwork-Id: 7034
Return-Path:
Delivered-To: ouuuleilei@gmail.com
Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2355271wrt;
Wed, 22 Mar 2023 06:59:14 -0700 (PDT)
X-Google-Smtp-Source:
AK7set9dcwaff0O1LR8bTWa7oRLE2ZX9PWIFPOWhse2XdRDheqvv5LCBoP4YcaX9tJRf5Ps2cBwX
X-Received: by 2002:a17:903:2448:b0:1a1:bbcd:917e with SMTP id
l8-20020a170903244800b001a1bbcd917emr3431260pls.10.1679493553851;
Wed, 22 Mar 2023 06:59:13 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1679493553; cv=none;
d=google.com; s=arc-20160816;
b=eObNCEJcZ8XT+runpVn4+bDWx6zLQaEROGUqbEHcCU+eFaN8RQVG9czsuqOs454q3e
2xX3LfLDSW9ROxz7oxwr1KhxX0suQyALF+ff3QJIXNPTT/zKBg1mfnZfBHpjCygnJc7i
wnpunG6Z5lRx5aYjWJSRPGZUCPJFim7jom9WZuJdp+nT63XEyBGCqK8C2Kvwa/9UYfSd
iwONL8H+zFAZwusNyB26iflCel6KiTM2a8Q6/Zn6aJ7kjXyH1E4lo0DsjxvB6H6VFv+g
arnCB/GGf2U0AmLH3qWAkXcscy8RzcqXs89TXrj5Sk3zBBZ0QVoMbIJl1fCUX0UKaFGQ
sPjw==
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=iG+1DdU06kh10oa77gtH+/W7kfUUhaVZeJUTc2eavXY=;
b=w1vMJrwQFz+4j3tlsNRnxwsg6Xkffvv4fQq0l/DCHAPSWQg4MEgECOUbY93O+NVJ4D
PZOT/tRnZXiYFvncVvBd3S/dNfZ/ZIGYJCxkA+3hGLcXi9TLo3QA9+rNbnA18AhUsjlt
koaU/7AuBNYs5UJDEKLp+zFmsaPmSYBOT/eyLhx0B3f7sYDqJuX0lxzH1B2wBmzdDcub
3cJH/H7Oa6Q/LJC47c1X51NgRYSP3lF5DQUgS1PK8oEDTkjlng2zhla6boZV+C9/QqXA
t0kt2r3BqQTZlt0PZ47BE7ACZCR7FpKIyx4ZC8mUVMG0FEb0uX3eMuhGnsuTp1KtldN9
VBtg==
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@samsung.com header.s=mail20170921
header.b=kMKBBxTe;
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
Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20])
by mx.google.com with ESMTP id
j3-20020a170902da8300b001a1cbba6fedsi10017758plx.382.2023.03.22.06.59.00;
Wed, 22 Mar 2023 06:59:13 -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=kMKBBxTe;
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
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S230435AbjCVNu5 (ORCPT + 99 others);
Wed, 22 Mar 2023 09:50:57 -0400
Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48752 "EHLO
lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S230421AbjCVNup (ORCPT
);
Wed, 22 Mar 2023 09:50:45 -0400
Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com
[210.118.77.12])
by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E47362FE5
for ;
Wed, 22 Mar 2023 06:50:22 -0700 (PDT)
Received: from eucas1p2.samsung.com (unknown [182.198.249.207])
by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id
20230322135017euoutp02e113e906a39349c39c0ac9c427677e98~OwgBQSMym1887418874euoutp02R
for ;
Wed, 22 Mar 2023 13:50:17 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com
20230322135017euoutp02e113e906a39349c39c0ac9c427677e98~OwgBQSMym1887418874euoutp02R
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com;
s=mail20170921; t=1679493017;
bh=iG+1DdU06kh10oa77gtH+/W7kfUUhaVZeJUTc2eavXY=;
h=From:To:Cc:Subject:Date:References:From;
b=kMKBBxTeGERCD3E6kZ7HmeqRZkpaTxK9KAvDJn+sgG9ICYRGiUb5CONyogNhXhyeq
b6q6fUlKZGWrkii3jaHPDNJH+l9C24+ZSFeCGuJkcKVFUIaskIYstr1y3oBk/Oh0SY
0sx81b+xL+g+CcIGJJyHk1wSQgdx/6/hCgRxAiV4=
Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTP id
20230322135015eucas1p28f23e7d968ab3d49dca4bf1f662abb97~Owf-f4rhS0617106171eucas1p20;
Wed, 22 Mar 2023 13:50:15 +0000 (GMT)
Received: from eucas1p2.samsung.com ( [182.198.249.207]) by
eusmges3new.samsung.com (EUCPMTA) with SMTP id CD.28.10014.7970B146;
Wed, 22
Mar 2023 13:50:15 +0000 (GMT)
Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by
eucas1p2.samsung.com (KnoxPortal) with ESMTPA id
20230322135015eucas1p2ff980e76159f0ceef7bf66934580bd6c~Owf-BrYp-2739627396eucas1p2W;
Wed, 22 Mar 2023 13:50:15 +0000 (GMT)
Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by
eusmtrp2.samsung.com (KnoxPortal) with ESMTP id
20230322135015eusmtrp2af36a9248db51625e24ac5b646d9e85d~Owf-AgzBl0670606706eusmtrp2R;
Wed, 22 Mar 2023 13:50:15 +0000 (GMT)
X-AuditID: cbfec7f5-b8bff7000000271e-0b-641b0797f2a7
Received: from eusmtip2.samsung.com ( [203.254.199.222]) by
eusmgms1.samsung.com (EUCPMTA) with SMTP id B9.52.08862.7970B146;
Wed, 22
Mar 2023 13:50:15 +0000 (GMT)
Received: from localhost (unknown [106.210.248.108]) by eusmtip2.samsung.com
(KnoxPortal) with ESMTPA id
20230322135015eusmtip2f1f96c9fda556d617f54da47c1cb62ae~Owf_y2n0A2592425924eusmtip24;
Wed, 22 Mar 2023 13:50:14 +0000 (GMT)
From: Pankaj Raghav
To: senozhatsky@chromium.org, viro@zeniv.linux.org.uk, axboe@kernel.dk,
willy@infradead.org, brauner@kernel.org, akpm@linux-foundation.org,
minchan@kernel.org, hubcap@omnibond.com, martin@omnibond.com
Cc: mcgrof@kernel.org, devel@lists.orangefs.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-block@vger.kernel.org, gost.dev@samsung.com,
Pankaj Raghav
Subject: [RFC v2 0/5] remove page_endio()
Date: Wed, 22 Mar 2023 14:50:08 +0100
Message-Id: <20230322135013.197076-1-p.raghav@samsung.com>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
X-Brightmail-Tracker:
H4sIAAAAAAAAA+NgFrrLKsWRmVeSWpSXmKPExsWy7djP87rT2aVTDE7d1LaYs34Nm8Xqu/1s
Fq8Pf2K02L95CpPFzQM7mSza7/YxWey9pW2xZ+9JFovLu+awWdxb85/V4uT6/8wWNyY8ZbRY
9vU9u8XnpS3sFrs3LmKzOP/3OKvF7x9z2BwEPWY3XGTx2LxCy+Py2VKPTas62Tw2fZrE7nFi
xm8Wj4apt9g8ft2+w+rRt2UVo8fnTXIem568ZQrgjuKySUnNySxLLdK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generator: CA
X-RootMTR: 20230322135015eucas1p2ff980e76159f0ceef7bf66934580bd6c
X-EPHeader: CA
CMS-TYPE: 201P
X-CMS-RootMailID: 20230322135015eucas1p2ff980e76159f0ceef7bf66934580bd6c
References:
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,
URIBL_BLOCKED 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?1761076632981051383?=
X-GMAIL-MSGID: =?utf-8?q?1761076632981051383?=
It was decided to remove the page_endio() as per the previous RFC
discussion[1] of this series and move that functionality into the caller
itself. One of the side benefit of doing that is the callers have been
modified to directly work on folios as page_endio() already worked on
folios.
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.
Open questions:
- Willy pointed out that the calls to folio_set_error() and
folio_clear_uptodate() are not needed anymore in the read path when an
error happens[2]. I still don't understand 100% why they aren't needed
anymore as I see those functions are still called in iomap. It will be
good to put that rationale as a part of the commit message.
[1] https://lore.kernel.org/linux-mm/ZBHcl8Pz2ULb4RGD@infradead.org/
[2] https://lore.kernel.org/linux-mm/ZBSH6Uq6IIXON%2Frh@casper.infradead.org/
Pankaj Raghav (5):
zram: remove zram_page_end_io function
orangefs: use folios in orangefs_readahead
mpage: split bi_end_io callback for reads and writes
mpage: use folios in bio end_io handler
filemap: remove page_endio()
drivers/block/zram/zram_drv.c | 13 +----------
fs/mpage.c | 44 ++++++++++++++++++++++++++++-------
fs/orangefs/inode.c | 9 +++----
include/linux/pagemap.h | 2 --
mm/filemap.c | 30 ------------------------
5 files changed, 42 insertions(+), 56 deletions(-)