Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7692704rwl; Thu, 23 Mar 2023 07:36:09 -0700 (PDT) X-Google-Smtp-Source: AK7set/JEP3aiQ6ppol2/FJeQnIJAurVls/vFsFFDxr7SPEz8SbSHM1xs2GTw+ppFswiQ92Z1xda X-Received: by 2002:a17:903:2887:b0:1a1:a830:cef8 with SMTP id ku7-20020a170903288700b001a1a830cef8mr7070757plb.27.1679582169587; Thu, 23 Mar 2023 07:36:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679582169; cv=none; d=google.com; s=arc-20160816; b=EjhY2KJlUuilcz1r/sLuVkv+YbWsLvr2FC3tC24bbLXXAliUOM7Hd5vB9xeSfMlpW8 UqobSqQ7/dwA2iW6ZF4QuBeurHCIqzCBquY04G7MJv1/RkD98ZWLuOHGwcMdKcPGTZnl V8kBofm46VHnOvBS0hc+u5Ad2NcgAfMAw8okFqG054G/pTBwZ2QboRt85EWB3/h1G28d +M+HPcKsZ0I9OqfwUBkeBAPZUJe9IPwtPKfak2bi/PfB+OzLK0rb4XORAfPwL9qE8R60 amTwkibLNd+xveZgJyLipRqKiu9tc/EYP7reLIPwNWaavrWw+CsmlTjZdlVwTYW1xPQM 5kwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=DW5cWuSORuMPl9h4M/OMu4zN6Ab689Cgd2Jmn907uzA=; b=w9ic5CMroX8Nd6y5PQfcbRDSdhbwoZnxMbm1VoQhQihMxsiW1iI5QzuLN7ICtmd9Wi 8uuDFG1xQi8eeSUvqnm2XAQRBblmIH6BU3KejhcxMiflHSC+dFshaq+IZg+1SOKUf2/C 1AfI3RVdUxAeNaKOJVlEXxUtfgfMERNCN2uxbYZxAugupYeywkF8b+QbSsAEoE6bn2g+ g2GHoxhmUfiU6ei3bPotYgGCmBOhzAjMCT/xWeU6KLvEh8dBZdqAdOz/W1yvy4EF5SMp sHg6Wwy+7AEY6qMfyhf9DS53SYa3C9AT1TntI4i5X3qAqOWHykaEPRb5C7+d8UUw6zRn 9vIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@omnibond-com.20210112.gappssmtp.com header.s=20210112 header.b=uga6xPbl; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c17-20020a170902d49100b0019af153b740si19492901plg.625.2023.03.23.07.35.31; Thu, 23 Mar 2023 07:36:09 -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=@omnibond-com.20210112.gappssmtp.com header.s=20210112 header.b=uga6xPbl; 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 S231448AbjCWOau (ORCPT + 99 others); Thu, 23 Mar 2023 10:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbjCWOas (ORCPT ); Thu, 23 Mar 2023 10:30:48 -0400 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 090ED206B0 for ; Thu, 23 Mar 2023 07:30:47 -0700 (PDT) Received: by mail-qv1-xf2a.google.com with SMTP id g9so14184141qvt.8 for ; Thu, 23 Mar 2023 07:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=omnibond-com.20210112.gappssmtp.com; s=20210112; t=1679581846; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=DW5cWuSORuMPl9h4M/OMu4zN6Ab689Cgd2Jmn907uzA=; b=uga6xPblyjNwQ0nys0O9OMOnWPlxzoqUx0tub1g4jl3Ds7H0qu2WTey6xF5KYLxKjC SCNdX/4AXYIE5IhDdtecko+9IOBtUIc3U2CM4hPqaHHiSjJXBWP+o6JLCwKslIKRmAED TXE8V7Fa5Vj5MdO1Sgso1Toii0RePFj640IY5JVqwEa1uZwDrQZ5LDzFX93GFGZY9IjQ hb8Z808MK7gqHrpq+J6Wxii0pqN6Kedc0VTbCmzHxDcz5RluBsBf5YY47foQKVJ8WL5w Hhs7tyAu+HDhks/IkXKF2t4EX3GViwlbB8pSikG3+R69thN52bWR4mIjSGgorkjzAiC0 GC9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679581846; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DW5cWuSORuMPl9h4M/OMu4zN6Ab689Cgd2Jmn907uzA=; b=RKoSXqpCbB9EVcCnBvkOzVX9mcBsJZSordzkt9VE1aCKhPsljyc21U8zR9cquaPVWB wV5QI/F9roK4WSrFCMEgChpjdlAsXf41q81tqfE9TtsDpFTcqTrEtkgbgab/UWx0M8/V 8YKlfy0yeb/8UKh4O/V1GxvfDVTTpANHAzk4Fjjlkm1IC3QL6DwDSGEbhEQjy4OeoW3j ZrJ2XpyvzB71tlioI4gFEmzDLpFJl8ZOTPx38vVZAOnb8UpUHfWtIy2nmiZSc6osEqsc pEphRXZVh5O0lTM9wIiHSDXHgPni1ZL/QB68BX0V7I7Zsk5wRiI0IGqUlnmnBfivNZfE bHxw== X-Gm-Message-State: AO0yUKVS2xfginRg26hge9FLFdzpFaoYR1R6ZZ0s5QmCLAy2TlIMvbwZ WWxDIeImaELo0NXIdzmdHYkCtlNe1w559aA5uhcPOg== X-Received: by 2002:a05:6214:8c7:b0:537:7476:41f7 with SMTP id da7-20020a05621408c700b00537747641f7mr1552535qvb.3.1679581846154; Thu, 23 Mar 2023 07:30:46 -0700 (PDT) MIME-Version: 1.0 References: <20230322135013.197076-1-p.raghav@samsung.com> In-Reply-To: <20230322135013.197076-1-p.raghav@samsung.com> From: Mike Marshall Date: Thu, 23 Mar 2023 10:30:35 -0400 Message-ID: Subject: Re: [RFC v2 0/5] remove page_endio() To: Pankaj Raghav Cc: senozhatsky@chromium.org, viro@zeniv.linux.org.uk, axboe@kernel.dk, willy@infradead.org, brauner@kernel.org, akpm@linux-foundation.org, minchan@kernel.org, martin@omnibond.com, 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 I have tested this patch on orangefs on top of 6.3.0-rc3, no regressions. It is very easy to build a single host orangefs test system on a vm. There are instructions in orangefs.rst, and also I'd be glad to help make them better... -Mike On Wed, Mar 22, 2023 at 9:50=E2=80=AFAM Pankaj Raghav wrote: > > 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 i= s > 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(-) > > -- > 2.34.1 >