Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7486557rwl; Tue, 10 Jan 2023 01:11:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvne78TWfzzNG/1RQR+N/m5VyI30xevvAarvT/5T1lXZ7wXr9iKkLVkupQp5iRmwdzWo3KO X-Received: by 2002:a17:90a:5d08:b0:219:4578:6409 with SMTP id s8-20020a17090a5d0800b0021945786409mr70885651pji.41.1673341881444; Tue, 10 Jan 2023 01:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673341881; cv=none; d=google.com; s=arc-20160816; b=A/MKpx7ro4lAYqRG/6CjLjN0PfFo8hhReyt8MUt7hnBC1jRZB60UB4Ba+qWbUbsx/r eB40XiBKcjxknSmaSDEIY+MujCyvzdc0DUjlPNbtVHWk0PtkvxCw4Wr9pQWZdYMISFaO dmG9y4r3D6PwXEFIkQ1GX6UBurxuIL34MlZl3V6PT2WtoYt8vUQCW3EloRuiz4y7rLMT NWeh/M8F4HnptLdrGEiUPhR42pEDemm2dwZqj/ujBIngbAdctUUzc2UVBdRFvYjJez93 u42O8Y5M+ZSzrjMPjEvLjfNzJvGO/UeIbQxnJ4LcUvMBmZfDFpeu09GZaZpC3wPC0klj lO8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=gXHkdvWBXNLyizQqN+zkUZ//tPu5q4K0Ow4ZbjvaKhg=; b=QiA/pha96oCN98rSHNFrYbsv2s5ndrqj2ETQGCcMmf1cR2oQu6bZa4L1xjvfrfSoxq FggNFvFPBelxGnVksuq3tm8uIkpbCQpCVhZxGOSXzosHOI+NCNGtaz7ppE7WaFRtXhbC mlUkfBSIzu5imLe5/iUwQgTlJtadeyfHD1UaaoOOVxh5rbFoJGVgYjBm80Ggr/NxqxJn fY00jhe5XyH7huqqDTF5HMQMOe9+BJujMu3Kj9HJVEciljvQhwjDx12FfA3K83xV8KwP SrNL3pc4MBRbKxMvzXM6NxOrCPyUZ89nIK7L6+3wqL4rZX/x4wCYLNAc0zq6TwdKbFNc k1AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LeSg2Fkh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o44-20020a17090a0a2f00b002266f608cf8si13839257pjo.125.2023.01.10.01.11.08; Tue, 10 Jan 2023 01:11:21 -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=@gmail.com header.s=20210112 header.b=LeSg2Fkh; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237885AbjAJJIE (ORCPT + 99 others); Tue, 10 Jan 2023 04:08:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235803AbjAJJHl (ORCPT ); Tue, 10 Jan 2023 04:07:41 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D750419C25; Tue, 10 Jan 2023 01:07:40 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id jr10so3106432qtb.7; Tue, 10 Jan 2023 01:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gXHkdvWBXNLyizQqN+zkUZ//tPu5q4K0Ow4ZbjvaKhg=; b=LeSg2FkhIhu9tMHW5R4n9vrheCJBYn824F/gOjqNBUOgydaQ/eiaUxZG/wQyoZbTHT QBn7BYZr/zCCaT5RJ0keGxHcFRmZvWzv+AOF+80jy2PvB9p9erNBDxTkIBmlcU44ayk3 5LGUQAytZyMu7VeARuyBifwCPsQrcuWKCAPL3i+6LtuNUpXC9zTDWYPmr/CeeW5TtDxO UTCCP0h3BB+ExMIDZG5F69XD3vN+LM5GxutZyMMfGah9eNnIRjzbjUiwQzRgYXTTdyZ1 7Hq8GXMEGhHC0z2krtnm7+gQd4dtKGRnJQcPdEN75WtGfp9FplamJ042YDnxa26P2WhT mB1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=gXHkdvWBXNLyizQqN+zkUZ//tPu5q4K0Ow4ZbjvaKhg=; b=diVndK3t53zlfWBJr/GD4P1z8fp0/L/WVkW8vXRBcEx2j4Vid9Euci8ulRo1VRlvfT mT+uPuAdarPe+u3pZf5wQfK3MyilFWI8TvrCtNjbvquhRHaWlR4c5DtuOeMTe1PSZOzw /XkWB+D43rYkAU4GGayVHeiR1MW5vH2JuwR42nWBQGvg6BtrvQqs12e5ytcEAl9EAZbv WXv7MLw6TUagpiDzHA72CCYvO5NB9nWxXost2NX3KuuPwwRiroiq00VHwG3r1IheVA1I jCT/R699093H4R+3jHfxzEGVhpIhw3ww6yJ4SKyIBJsZFW+U1qyBHy/S53bR+Ab1oxN4 8Rpg== X-Gm-Message-State: AFqh2kp52osMP6i6mq22eXlOtAhZmR/0Cl841mz+0szXsj+NbvKPtLRB dPR3+Aiv5PnhnuxSt7objuwBZVBKSwCB5aQm3tYkg+K8lC4= X-Received: by 2002:ac8:5544:0:b0:3a9:6c70:3992 with SMTP id o4-20020ac85544000000b003a96c703992mr3080249qtr.585.1673341659942; Tue, 10 Jan 2023 01:07:39 -0800 (PST) MIME-Version: 1.0 References: <20230108213305.GO1971568@dread.disaster.area> <20230108194034.1444764-1-agruenba@redhat.com> <20230108194034.1444764-5-agruenba@redhat.com> <20230109124642.1663842-1-agruenba@redhat.com> In-Reply-To: From: =?UTF-8?Q?Andreas_Gr=C3=BCnbacher?= Date: Tue, 10 Jan 2023 10:07:28 +0100 Message-ID: Subject: Re: [RFC v6 04/10] iomap: Add iomap_get_folio helper To: Christoph Hellwig Cc: Andreas Gruenbacher , Dave Chinner , "Darrick J . Wong" , Alexander Viro , Matthew Wilcox , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, cluster-devel@redhat.com, Christoph Hellwig Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Am Di., 10. Jan. 2023 um 09:52 Uhr schrieb Christoph Hellwig : > On Mon, Jan 09, 2023 at 01:46:42PM +0100, Andreas Gruenbacher wrote: > > We can handle that by adding a new IOMAP_NOCREATE iterator flag and > > checking for that in iomap_get_folio(). Your patch then turns into > > the below. > > Exactly. And as I already pointed out in reply to Dave's original > patch what we really should be doing is returning an ERR_PTR from > __filemap_get_folio instead of reverse-engineering the expected > error code. > > The only big question is if we should apply Dave's patch first as a bug > fix before this series, and I suspect we should do that. Sounds fine. I assume Dave is going to send an update. Thanks, Andreas