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: 13175776 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 81FB8C7618A for ; Wed, 15 Mar 2023 12:32:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B24516B0075; Wed, 15 Mar 2023 08:32:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B0CE66B007D; 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 8E97A6B007B; Wed, 15 Mar 2023 08:32:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 7D05D6B0075 for ; Wed, 15 Mar 2023 08:32:41 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 45E1C40D40 for ; Wed, 15 Mar 2023 12:32:41 +0000 (UTC) X-FDA: 80571071322.14.E8A1712 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf27.hostedemail.com (Postfix) with ESMTP id 65D024001A for ; Wed, 15 Mar 2023 12:32:38 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=VoKw1Tcp; spf=pass (imf27.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: references:references:dkim-signature; bh=ykKPRIypeSKVaDre01XbjaH9/YVIiqKYL9EWvo/S2nY=; b=dyslS0fFjwJ1HmMLHqytnmvJwt7wjhxXKTxF+qdmwSKSNjm4zH89kpQx/hC4uEubwNbhXq LfBdoo6596FFhP/4RDfu6Y5DOmf8G163XETYX2YCHpW6So9nUcRiQAwGwwCGF8p7iY+PVe MNLIxHiQyKu4kQm2Fpd3IDSyRchWNtg= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=VoKw1Tcp; spf=pass (imf27.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=MCspHCseEjskGwMZynTpVQB9zEahlp02T68ET67nw4Y68BMzNC5PsdBaBWkQ/4lghp9fUx oov5Eazd0nGT8VGZBznL549YJS/WPI46uVTp8C5fH9u93y2JVmuEbiBAhJdJ3JjCsY+Lex nqhphBvgWBI0DbwXstaEnvVf53Y7gf8= Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230315123236euoutp014ec1ae18419c1361a7e99fd9f0851ee5~Ml7MSycxB2672126721euoutp01D for ; Wed, 15 Mar 2023 12:32:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230315123236euoutp014ec1ae18419c1361a7e99fd9f0851ee5~Ml7MSycxB2672126721euoutp01D 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/msDkIesxuuMjisXmFlsfls6Uem1Z1snls+jSJ3ePE jN8sHg1Tb7F5/Lp9h9Wjb8sqRo/Pm+Q8Nj15yxTAHcVlk5Kak1mWWqRvl8CV8X7FZ/aCuewV 7Z82szQw7mHtYuTkkBAwkdi+dgVbFyMXh5DACkaJzX8/MUI4Xxglvs6ZxQThfGaUaD+0jL2L kQOs5dsGZ4j4ckaJu1NWsUI4Lxkldv9exwhSxCagJdHYyQ4SFxE4wyjxpGUi2A5mgfuMEteb frODLBcWsJKY+Xg/E4jNIqAq0f1oOSOIzQsUn3NnKTvEgfIS+w+eZYaIC0qcnPmEBcRmBoo3 b53NDDJUQmAxp8SKh1uhPnKRWH1vM1SzsMSr41ugbBmJ05N7WCDsaomnN35DNbcwSvTvXM8G 8Zu1RN+ZHBCTWUBTYv0ufYhyR4kLuzuYICr4JG68FYQ4gU9i0rbpzBBhXomONiGIaiWJnT+f QC2VkLjcNAdqqYfE8YeLwD4UE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sP nmUGGcosoCmxfpc+RImgxMmZT1hAbGagkuats5knMPLPQqiahaRqFpKqBYzMqxhFUkuLc9Nz i430ihNzi0vz0vWS83M3MQJjdduxn1t2MK589VHvECMTB+MhRgkOZiUR3nAWgRQh3pTEyqrU ovz4otKc1OJDjKZAV09klhJNzgcmi7ySeEMzA1NDEzNLA1NLM2MlcV7Pgo5EIYH0xJLU7NTU gtQimD4mDk6pBqYFdr/1JpWtC6/lbCuys/l178+W3CULf51bZjKjsl42ML7PsDHyjd/n61oJ YjYqagJPmlZEnS2LcX7tbrFrdw/P+TK7G965lu3yvz/N0bCcxVqhwVGeIVXI4LVN9kSSruQW e/XzvjxfL/TenBWa+VTZJFVZWHVm7rGsFp7Urt47krlqSsFil5XnPxcTtGSPPXvJraPD+fY3 y/p5QurPrJW3uW3UWK5a35l6gPPKe5tVuQf4MjgMem9p3JxsuyBl6dHg5d2TUrnzTetbDey1 HnzSMngyf83ikFv8EV75n29PTgl/aNIbYiET8lH+SpFd1W62Ly4NHPrSKa1FXl4PxZJc7RNk AkNc4xQS5iuxFGckGmoxFxUnAgDOtCM3XgMAAA== X-CMS-MailID: 20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504 X-Msg-Generator: CA X-RootMTR: 20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230315123234eucas1p179bf8c0583a71d91bef7e909d7ec6504 References: X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 65D024001A X-Stat-Signature: 6jbw5ynw8hmbxq3fmn8tjegmtosqswqf X-HE-Tag: 1678883558-953860 X-HE-Meta: U2FsdGVkX1+MAh6m9pfPUwPpgPMOXAidT14Z3NFzsE6451dJQVwZwH7zDn8APCMyJbDyRNPMgoerc0pZFEamNSHS8rw9AJK1DrLPo0CDsQFwdSL792rjrGo+f7AJe9tIGFA4k79gSs+JDeGv9eIYA6QKt2boysTM8d9rfiuUQ0MQXexOlO5ZGXYvQjTH4EoLHTcdg/ltWX1BPpiEk9H3ajDcsZ8U421/t4WGmYYF30wwKnsmni4RDH5lJNXBtRzgnIu4mKGyGeYv1KlTrCLIvIjbSxWSAN8fjB/z9vTOw5D5pNFp4HpwZNythefktz982vuiSgG0gQ4aBWciz2FEdTzKlvkjPRYvCdknEFKFTpfar809V8BLS1IC7pPaXkU6OSDHapKyi/B3CZ5Z6EnnNDcPKT1WH0Ez3jiIUWMuILSigKkK8aaA7FlY4sl/i1Y+RNrfxDPdBXo8ev25Wk+UxvJr1iYfHZsg7jBVOYdJ9varzSTORQ/dB5BrB5b10Ew9ecXFn6pIKMn/wT4kYxRjlFU7JKAlLOJbImmednO1Vyz+wR3ZhYA/nqAwuILwJ22K9wVxIEE4U/EhVwdExfj7R3MoA9ucWuazUgibUdnj8xGIBsbWFjEVKdkmBUQyISzz0ZF9ww+UxG8554/oYrH6GMhhoSHAVuH2uE6RO6nnGzJx2ix4KRsxbljsTEhGaUmH32AeODg2sBi83A2kG+A0O2MsK5n17AQaFoZV1m6VUXAB2+UNN4x651wOMDd3n+yhWU1pEsoAj75iQyGCHr14fdfDDIj6pezhFGAr66Lc7c5vgLLExOIpXb1Qs8GLA0wUFH2Hwa9UfrlpOFfnxFhyWLYkRDfv4cXfN9Jt+tp92uMHVJGvqqb6mQZeLfet95BhNR4JQxzLNYA5iHr+spWTeCpmIIRTOVzP7IOJmv08CcCsTnyrONWHc+C+II3qm3F3XyCai3qrIVCrbR2sFTn oZucxjd3 /eSzaocABwti1eXKh6bDSsWSw6ZKPKFJcTMUhiImDWX5kIH4/PdeRQyn94QU9BL/k8hSaCYJ/PCF+3c77MwZsPKYeSHElwKNFqi7s9+u531W+M+jLBKHvYWl617NoROw6IarBs6S3Y/DUMUUezXRhu+FZY3rLXjIN3Z3i 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. 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(-)