Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7466062rwl; Tue, 10 Jan 2023 00:53:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXvv5tM90tlJMX11pDUBbAEQU0j09ajIs9t1I1556Dbg4qPPTfuaDU2XUt7/zlwu48blml8H X-Received: by 2002:a17:902:eb8a:b0:192:9dc5:54b6 with SMTP id q10-20020a170902eb8a00b001929dc554b6mr47407292plg.48.1673340782686; Tue, 10 Jan 2023 00:53:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673340782; cv=none; d=google.com; s=arc-20160816; b=gIi7mVMq/1gXgjy4P9wO1wKZ4yWzaKaX0HewLMrf3LOOLB3ibSpL5bixe73Jr/7l44 RVNTdE70fGKVSnS38t4JoFw3dA+IxeCBYpYY0FZEPjR45QfX5k2UTJVwGgnAPEDqhr9o xiJkPQ/ogg3wfKA8pRV1RElaZtga5A8mPohxp9y1akzt+W5rldjgQ3aDENM0QTg0oS+z i3SnxhZHtBg2ebY0+9jx+Gq93qMsiOjcqmDUTFBjZCXSCdx2yj7ztesprN8YgWfAoZWv WmNaXUZsUmyEflTPZPrfNM1BVQru5e/EJQDmrm3yCIYlxDJZ+kyiAixWo/9hL7clPN8q BhcA== 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=dEXzLuaqvTyI+z3V9E2DV7LmLQn86nVlheB/UL+EEQQ=; b=DnSEoOQaaVWwbhqLhrdTWRlWtmNfEto1DbuYT69NZHbXeXKdA5592P6olIiFM9IZa9 vzK2tEtaOGxhHd8FCWLmvsrsENhR4j8r+4oaGexUSEFtcKd9GNqIs+DJvTShlJDdNYOR 5aKy980zxGBwhIdmjDcNDp0vfZJ3sh/4j0iU0GkEq7Zc900EmuKvq9iqIXdCAg2O56Uq jmH72giC01x8eXPnuvFn3raqq2KXIIEiJ6laPaQRWJlrV2f7QHQsQy/obKYkI2tdLIZf rfiia9Aq8OXY832FgneBMeO2GNN85Oax42ibrWXhZCrAfI4UFiz9mp034TZPLR8QHoQx YxfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=4+ELp8oA; 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 f9-20020a639c09000000b004780edf920fsi11681497pge.165.2023.01.10.00.52.45; Tue, 10 Jan 2023 00:53:02 -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=bombadil.20210309 header.b=4+ELp8oA; 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 S237975AbjAJIsV (ORCPT + 99 others); Tue, 10 Jan 2023 03:48:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbjAJIsU (ORCPT ); Tue, 10 Jan 2023 03:48:20 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F4F5265F; Tue, 10 Jan 2023 00:48:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=dEXzLuaqvTyI+z3V9E2DV7LmLQn86nVlheB/UL+EEQQ=; b=4+ELp8oAZD0VpajXTmN091MC6L ZRgGc8buu/MFV3TuLGpIeq2LzVwd4EtlS9LemmpyRIZEofEYzcvRTAsr27+I3kUaJZvTTQ1qHe1ie EphkUVXO6yTRnjTnzbnFeNNlFkNTvCFZNBZ2EX8f9x6gHK11Cu2nWTo6i7YRyNHvUkeRwKolStVgU RX4mj/aGJkdm1LTzyZ8s9C/KRvFTBl66LFWIWZHDzd8QP+Q8cGLQAnOyOh45RnWs7wf6Q3/MPTWto pp/Q88x9bmKvZAZqctxkIZU5iLJeoAkEflOdMcBkVvMHR4naDm+LYHWi7NaYLOs37tTII8bQYeo6u +i+kKG0g==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFAIp-005trf-CU; Tue, 10 Jan 2023 08:48:15 +0000 Date: Tue, 10 Jan 2023 00:48:15 -0800 From: Christoph Hellwig To: Andreas Gruenbacher Cc: Christoph Hellwig , "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 Subject: Re: [RFC v6 06/10] iomap: Add __iomap_get_folio helper Message-ID: References: <20230108194034.1444764-1-agruenba@redhat.com> <20230108194034.1444764-7-agruenba@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230108194034.1444764-7-agruenba@redhat.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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 Sun, Jan 08, 2023 at 08:40:30PM +0100, Andreas Gruenbacher wrote: > +static struct folio *__iomap_get_folio(struct iomap_iter *iter, loff_t pos, > + size_t len) > +{ > + const struct iomap_page_ops *page_ops = iter->iomap.page_ops; > + > + if (page_ops && page_ops->page_prepare) > + return page_ops->page_prepare(iter, pos, len); > + else > + return iomap_get_folio(iter, pos); Nit: No need for an else after the return. Otherwise looks good: Reviewed-by: Christoph Hellwig