Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7802097rwl; Thu, 23 Mar 2023 08:51:27 -0700 (PDT) X-Google-Smtp-Source: AK7set8UM+Um9xz7fTcc7VcJu/Bob/uKwoiQM3dhTRvunWQv8g+x9We+xYPrEcmtfbzRVdPCbmG9 X-Received: by 2002:a17:907:a4c3:b0:93a:219d:b167 with SMTP id vq3-20020a170907a4c300b0093a219db167mr10469566ejc.52.1679586687303; Thu, 23 Mar 2023 08:51:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679586687; cv=none; d=google.com; s=arc-20160816; b=qAEGLdUujeJt+3yBOAVinocFLqo6+menx3VhQdprEVlqGyLkbO5XwXNJUXqClOMAcQ Y/ye2bpR7TqWvsgLZgVZyFWm5iZ/s6D5FdrkBdHhtUyhbNsU5uMhNT2R2MiekU/TaBnB AS23XmwjXFOhUhw9f9jsYsDGh96RI22QSjYYf01SZCvEHPGKsKl9pMaVYgChxBbRYJZv ZjT1RrPETs2VFVNtKUid2kqKEqK5CVmgaqHrDBkh8PRBRKNuhm7XSYvzXVGYnZrcyNWA h/w8YnJ7RG9z3EYX8QJ07P6Prtw0Pr404QzFadN7mECZCyxBk7OFg+GqJTS6VoalBncy uubA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hi678RG+egR/ohgFkrrnz97rFnnIU7oN844J5N2rULQ=; b=S5ScbfBepQ1IoVsO8/FqTR+t3cE7/lPHB/Y34WV7dsShWBjqrWgmZjbcJxwFx4dN/n 5JW8f6hCjYq31w44wHW1yok1R4/Pv5SeIKrbWEBLolk9mndAOnIYCQ/zSH6M2ETArVOp cRdWIn+cJZPWvkKcgOZD9WRJeDNLIgSeqlNNcOofSXmncqyepIow81NNcUd3KoAefDGz 3+BbzgtW70Z0Uu2eAP5XE+y6kZ1pMeqt78ZRaj+LrrFZ8yDvWAgDf0LZ58bskY+Ssflh ALVX/jRJ4VUQomVhqdCSvpcGAmlEOCsnNczIuCkz5542cqVDNhSI6EMB95KAFSSbN8SU UKEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=YmTajRSE; 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 t24-20020aa7d4d8000000b004ffaf8b9e6dsi19144931edr.488.2023.03.23.08.51.03; Thu, 23 Mar 2023 08:51:27 -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=@infradead.org header.s=casper.20170209 header.b=YmTajRSE; 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 S232142AbjCWPdr (ORCPT + 99 others); Thu, 23 Mar 2023 11:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbjCWPdi (ORCPT ); Thu, 23 Mar 2023 11:33:38 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42AB776B2; Thu, 23 Mar 2023 08:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=hi678RG+egR/ohgFkrrnz97rFnnIU7oN844J5N2rULQ=; b=YmTajRSERctVdDqthoUzk8V1y5 JcXUqGfOrW0uvT2auwRy+Z2MmEoW0In7FSEHQRJgt0bvf7Q3tCok1ZKq2pDmq2U97c/0tltJaxwbC 2aGLHCuAGuY3SPkVcxxp9bnm26fMEdA2JRXCE+lyumGZfi5ycDfcHj+wi+a4CbLYuWjJrLd2piPyy VBj0caG5Ainp0pOxP8pKeTJLVQpzm8DRD2cLbALRn+mEiuYDMIJUr7VcsdxbbazF9Rwh+hIZ2QwCv BF3B32nf5/UtTpuotoi1dQ5nFpqTcinuGimhxlVY5TQ0MuwXj8rtoOpZHe7GZ9FpM6PoQf4gk46Tc OxEUTDXg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pfMwJ-0042qM-6r; Thu, 23 Mar 2023 15:33:19 +0000 Date: Thu, 23 Mar 2023 15:33:19 +0000 From: Matthew Wilcox To: Pankaj Raghav Cc: senozhatsky@chromium.org, viro@zeniv.linux.org.uk, axboe@kernel.dk, brauner@kernel.org, akpm@linux-foundation.org, minchan@kernel.org, hubcap@omnibond.com, 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 Subject: Re: [RFC v2 0/5] remove page_endio() Message-ID: References: <20230322135013.197076-1-p.raghav@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE 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 On Thu, Mar 23, 2023 at 04:00:37PM +0100, Pankaj Raghav wrote: > > We don't need to set the error flag. Only some filesystems still use > > the error flag, and orangefs isn't one of them. I'd like to get rid > > of the error flag altogether, and I've sent patches in the past which > > get us a lot closer to that desired outcome. Not sure we're there yet. > > Regardless, generic code doesn't check the error flag. > > Thanks for the explanation. I think found the series you are referring here. > > https://lore.kernel.org/linux-mm/20220527155036.524743-1-willy@infradead.org/#t > > I see orangefs is still setting the error flag in orangefs_read_folio(), so > it should be removed at some point? Yes, OrangeFS only sets the error flag, it never checks it, so it never needs to set it. > I also changed mpage to **not set** the error flag in the read path. It does beg > the question whether block_read_full_folio() and iomap_finish_folio_read() should > also follow the suit. Wrong. mpage is used by filesystems which *DO* check the error flag. You can't remove it being set until they're fixed to not check it.