Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4227855rwl; Tue, 28 Mar 2023 04:37:33 -0700 (PDT) X-Google-Smtp-Source: AKy350bndw6TtjoDokLhFmucbOXCn8gU5SuT8qGqKLuYKNDVOCAmP+0jSt+ixyLtoDe01zRkktBs X-Received: by 2002:a17:906:e2c8:b0:932:e141:29c7 with SMTP id gr8-20020a170906e2c800b00932e14129c7mr16261179ejb.19.1680003453218; Tue, 28 Mar 2023 04:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680003453; cv=none; d=google.com; s=arc-20160816; b=ud/xJJ+kd9w5rd02L1fCwKNf05mixr3wvbFW3mnneqDQlQaitJz1kuS+TbhaLUv7YZ AeJkDT0wNYn6kky6/FQdNSqWaA3GtZb+RQin9DsHnqN86JLSlf+YlMqWm6LoHSD+2I7Q f28T/QQtc93UqE4jMZijViaEjRdKMOb47w9PeqI5cPw+2BVJsPKweh4weisr9SToQpgS bj0+lkd3LbU3S5WGpf9kP6Ow3rxsrcATn4OxUraDIuTu5M/YkIXeOTrQzfeXxcCKfdJE wDiAnQWqYGo/RJ5RKSbmJbLnWV8BW0YZK9stOCBGrjRAsSAo/cUSjncrXtEP5BipbIDl NpCQ== 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=mVt0esU6AYdO/3BpdSH3EjSwJzmaOVAOyp6U72Ql82c=; b=URjXglNb8oB5etJhWTdS98pK+rCXh6R4JEXN2j9pAt2LcMmzjWWRTV/L0BGL0BjWr1 Tm9BGwRwyLCvFiJldFXsc2DDL/RVe/TPe3T1YbNIeuFNITyiMWwe6jZTHWmY8XvGFO1I TU/7gRRjYLmZaiM6oqHCzuYHVVV52pL+rmFMwajM6lGg72fmjMaSPj3RH/2wpqN5yvb6 yYXnrstEmk7bjIWsy6CR6799H1PKRAUbX40TuD/qkTxuqCmgPLmLZlxif4Tee//yFbKR 7lPTzrqg09v47szV/IWPBeNpzMPfK7wIhlZtiVL4yJiadRjiFMakbag5joez+Vj5eG5r Lj5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=hFeo+f30; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h17-20020a17090634d100b008d89608d4a2si28756416ejb.204.2023.03.28.04.37.08; Tue, 28 Mar 2023 04:37:33 -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=hFeo+f30; 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 S231834AbjC1L1i (ORCPT + 99 others); Tue, 28 Mar 2023 07:27:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbjC1L13 (ORCPT ); Tue, 28 Mar 2023 07:27:29 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFEEF19D for ; Tue, 28 Mar 2023 04:27:22 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230328112720euoutp01c0b43dc37e7108838199ca2d801042f7~Qka6luxdQ0345803458euoutp018 for ; Tue, 28 Mar 2023 11:27:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230328112720euoutp01c0b43dc37e7108838199ca2d801042f7~Qka6luxdQ0345803458euoutp018 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680002840; bh=mVt0esU6AYdO/3BpdSH3EjSwJzmaOVAOyp6U72Ql82c=; h=From:To:Cc:Subject:Date:References:From; b=hFeo+f30BHxHa2PaDsS37TiPMjfRONKR37n29S84sv8Qhl2gCGbZu1QCXaTM33WyO aWJdSYPjU6uyMNhrBBktr/rmwi43Kop00WJZnkFuNGxMHNez/qj8rEr2zW3bwo9mNg k519wt6+idwTnr97Wp2CwGDmdc/9BaPu/JqAN+uA= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20230328112718eucas1p1d6cdacc223a4a9da529cedb8ebfb4db9~Qka5GN6901588715887eucas1p1V; Tue, 28 Mar 2023 11:27:18 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 39.58.10014.61FC2246; Tue, 28 Mar 2023 12:27:18 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230328112717eucas1p2eb9395b7e3334c08aa28740b0af46fe9~Qka4aThPJ3056630566eucas1p2Y; Tue, 28 Mar 2023 11:27:17 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230328112717eusmtrp1320acab2ed759067daec82e4f672c281~Qka4Zol2C0876308763eusmtrp1R; Tue, 28 Mar 2023 11:27:17 +0000 (GMT) X-AuditID: cbfec7f5-b8bff7000000271e-f8-6422cf16ffb3 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DC.19.08862.51FC2246; Tue, 28 Mar 2023 12:27:17 +0100 (BST) Received: from localhost (unknown [106.210.248.108]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230328112717eusmtip275994a46bcd3f06e91d3b024b2596c74~Qka4JjFw80132101321eusmtip26; Tue, 28 Mar 2023 11:27:17 +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 0/5] remove page_endio() Date: Tue, 28 Mar 2023 13:27:11 +0200 Message-Id: <20230328112716.50120-1-p.raghav@samsung.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDKsWRmVeSWpSXmKPExsWy7djP87pi55VSDC5/VbKYs34Nm8Xqu/1s Fq8Pf2K02L95CpPFzQM7mSza7/YxWey9pW2xZ+9JFovLu+awWdxb85/V4uT6/8wWNyY8ZbRY 9vU9u8XnpS3sFrs3LmKzOP/3OKvF7x9z2BwEPWY3XGTx2LxCy+Py2VKPTas62Tw2fZrE7nFi xm8Wj4apt9g8ft2+w+rRt2UVo8fnTXIem568ZQrgjuKySUnNySxLLdK3S+DK+DBtK2vBAZ6K f/N1GxjbuboYOTkkBEwk7hw/wdLFyMUhJLCCUWLxhfNMEM4XRon2j1OgnM9AzncQhwOsZcnV OpBuIYHljBJHWxIgal4ySnw8cZQVpIZNQEuisZMdJC4icAZo6vJGNhCHWeA+o8S3lyArODmE BTQk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FVija0MNIztLTQ MzKx1DM0No+1MjJV0rezSUnNySxLLdK3S9DL+DBtK2vBAZ6Kf/N1GxjbuboYOTgkBEwkllyt 62Lk4hASWMoo8WfGL+YuRk6guITE7YVNjBC2sMSfa11sEEXPGSW2vu9lB2lmE9CSaOxkB4mL CNxglFj79BcriMMMUnR332tWkG5hAQ2J029ms4PYLAKqEru2X2MCsXkFLCXWLZgCtUFeYv/B s8wgQ5kFNCXW79KHKBGUODnzCQuIzQxU0rx1NvMERv5ZCFWzkFTNQlK1gJF5FaNIamlxbnpu saFecWJucWleul5yfu4mRmCkbjv2c/MOxnmvPuodYmTiYDzEKMHBrCTCu9lbMUWINyWxsiq1 KD++qDQntfgQoynQ1ROZpUST84GpIq8k3tDMwNTQxMzSwNTSzFhJnNezoCNRSCA9sSQ1OzW1 ILUIpo+Jg1Oqganv/FXmP8u5rQ3E5mfXWDSclEu90q0WdKXxwM8cnRPacWJb76zySF3f+63J 42zZJPfygIQ7lW/SEwX/ixtVLl717qve1XP/TtxyNwgw1nIOjljhJi8Z86+RO+uLC+fv7cFs 7/9t/brCN21Lg5L9vvlP8qcGK4hHf69VeRLgxlSWnMilOP+2iWPbt+lmZlPOzBNr/bxQmEPg XGEtd99JgdyEb9++/5Df8eNbWfx68cNPZ1fXVizINSwPs3d0eZyefdxPr+Gv54ubf/xlbVUj H8XKKHy89OBtkLX1jPIus0/2cVvjl7xuePLGW9N5q5frPs65ZrHPv23yu9H/YF90QNwjX6Zj z102XYv/ncMQp8RSnJFoqMVcVJwIAEsU01ldAwAA X-CMS-MailID: 20230328112717eucas1p2eb9395b7e3334c08aa28740b0af46fe9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20230328112717eucas1p2eb9395b7e3334c08aa28740b0af46fe9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230328112717eucas1p2eb9395b7e3334c08aa28740b0af46fe9 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 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 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. orangefs was tested by Mike Marshall (No code changes since he tested). Zram was only build tested. No functional changes were introduced as a part of this AFAIK. Changes since RFC 2[2]: - Call bio_put in zram bio end io handler (Still not Acked by hch[3]) - Call folio_set_error in mpage read endio error path (Willy) - Directly call folio->mapping in mpage write endio error path (Willy) [1] https://lore.kernel.org/linux-mm/ZBHcl8Pz2ULb4RGD@infradead.org/ [2] https://lore.kernel.org/linux-mm/20230322135013.197076-1-p.raghav@samsung.com/ [3] https://lore.kernel.org/linux-mm/8adb0770-6124-e11f-2551-6582db27ed32@samsung.com/ Pankaj Raghav (5): zram: remove the call to page_endio in the bio end_io handler 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 | 8 ++------ fs/mpage.c | 38 +++++++++++++++++++++++++++-------- fs/orangefs/inode.c | 9 +++++---- include/linux/pagemap.h | 2 -- mm/filemap.c | 30 --------------------------- 5 files changed, 37 insertions(+), 50 deletions(-) -- 2.34.1