Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp13668470rwl; Wed, 4 Jan 2023 11:15:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfD5zlPD7uJnYXVy8iYJDdO9QcPTg50AgUcAKmpzqm9z0H13oGBzqfw4w3Cr96DmHqnjAA X-Received: by 2002:a17:902:bc45:b0:188:b084:7bef with SMTP id t5-20020a170902bc4500b00188b0847befmr55891980plz.42.1672859736278; Wed, 04 Jan 2023 11:15:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672859736; cv=none; d=google.com; s=arc-20160816; b=AFGl8le6KV5SMOPDFvzsLpkhNk8VULaYIb+7GLS5pgmaSzrNi9dO+1mO5r0oN6gWri LpCSQ7yyQxhAwkpUZ2KzQtWv/UVvC61ClX51Qcohu6sJn6q5MzHysTe1ZC34A3oeg/mh MpxGO/PcnO9HW6NaE8RS6Jk0dQSZasvQYnX1VZccGoT5W1Mfwm2pbFwqNtcIjugVmx7p qC17CEU36yiKBrPbuagDJ0fxSEFdulojYx/CB4oOr5VnWYt2AXYIEmfCU8vCwMTgPb9/ rZTEmj523WFAH4ZmtuhBdoUB7RJzvkGhfuYSZck85RHRT1bjE1FhjXLZnRYrDydEeZ+B WSPA== 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=fDWgFBewtGbw5iHxoxFeYnyYWjOHMX1rLb6gb0kyAo4=; b=mySoTi643/d/PBL2bM8JI3rgrCD2c/ndtZG1kFpRi5bkq2znjt7PeMQJgwVOcpMKxn gitlOdEBqoA0YtQSxaMNoi7jzBdlcJbBS+ZrNC2q9aS5CoWeHu6a41MtBonyiP405Nxd r77pwgwEWy1fznvvujv6qyaovX8Xpu74fuDWXP5HaLWdo+eb5xC5pwaSne+5bOFRJLtN dba9yeNk03YWBHE/aiMJs9Ba5cGqT/DaRLnRV/DkDjFlpY20fYB42UFRDQnud7H2TRLu hgCH8hE7/MQ9XeQ/6gVXpy1diWnYSZpLk1VsL/T+RNGRPzVIJhHaRZCbIT99vB6Ol7uL M9Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="pLZgry/S"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 l12-20020a170903120c00b00181dc40f516si19882691plh.146.2023.01.04.11.15.22; Wed, 04 Jan 2023 11:15:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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="pLZgry/S"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231397AbjADTIY (ORCPT + 99 others); Wed, 4 Jan 2023 14:08:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235399AbjADTIX (ORCPT ); Wed, 4 Jan 2023 14:08:23 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A403B395DF; Wed, 4 Jan 2023 11:08:20 -0800 (PST) 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=fDWgFBewtGbw5iHxoxFeYnyYWjOHMX1rLb6gb0kyAo4=; b=pLZgry/SIAY2jl21cVLf3rPcM1 7uVnYL8dQNMbocA/QpUWiK5zz4Qbly8AG12vjlkGqWskg+BLlaZh0QN4SFHPoxqxhnhvnZyk+pT3c 6QlT/ZGnOKRWPPfgqdM52zDa54hcFxPqZipEY1LZKlJ48davm+95elVs1ij+nQ1Vk+TQL+hmTWh+x c8YJrhqvdO9kzCmLEJeuL/cT6a7VGYu3xu582YLp/VM1O4Hq2l/R+zRvv5CDKir3I54pekM/z/n3p IWBn0zkoE0ZOld28/hdgYLY7mfwm9Q+Nr/lG860+lPIjEbZgz5qw/7uQ9ze74qrXlxZ4KfMQvLrBI nmPreJDA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pD97Z-00FJmu-26; Wed, 04 Jan 2023 19:08:17 +0000 Date: Wed, 4 Jan 2023 19:08:17 +0000 From: Matthew Wilcox To: "Darrick J. Wong" Cc: Andreas Gruenbacher , Christoph Hellwig , Alexander Viro , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com Subject: Re: [PATCH v5 7/9] iomap/xfs: Eliminate the iomap_valid handler Message-ID: References: <20221231150919.659533-1-agruenba@redhat.com> <20221231150919.659533-8-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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-ext4@vger.kernel.org On Wed, Jan 04, 2023 at 09:53:17AM -0800, Darrick J. Wong wrote: > I wonder if this should be reworked a bit to reduce indenting: > > if (PTR_ERR(folio) == -ESTALE) { FYI this is a bad habit to be in. The compiler can optimise if (folio == ERR_PTR(-ESTALE)) better than it can optimise the other way around.