Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4762785pxb; Tue, 2 Nov 2021 15:35:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkEw9KYcs7/4vEHJbB8u2/H2T//h7rwSUzHk7dLBCY8X8nrDWO2HUmmCZF8SUEMoJqkuiL X-Received: by 2002:a05:6638:441:: with SMTP id r1mr17782348jap.37.1635892510079; Tue, 02 Nov 2021 15:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635892510; cv=none; d=google.com; s=arc-20160816; b=A00HRwX2A463Z2h4+JUwnqVIrFjB1r3+QOI0eiRdXnIVoZ4hvWshwNhIiRLc7kjh8M jF+NgsSY8A2HLXbwns/vXisLTDxBW6aCn7ZMKkBAYmIgF1thIbT8ffYeAp4n8t74UpfB M/x5kxe8OOlw1Sbw7iHvrcmzjJij21LA8siuqcxvxG+jA/Mj8r4OItvSPg/f632LKEAY 88LG3ddip5Sql43UefwxDHEP71gCihiMJs2iLByObDY+Hk/gMBRWhigr7xBQ43WHTHMa Ux/BniVR9vzg7Dte30uK2olqPW4qqPgfVOM3cx/NXpb87qJiy4+ujeNuBdsgyHNZWZc8 m/hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=XScYOlOeUciU4dBSUquEeTulM7j610reAXR2BVP/Na8=; b=wd+eCz/a5pHeRgCz2fiHyMwzTXfju4SGicTh+NdbtAPxLs7em0wdpVSVSSEIO9q0IC 4hJe4Tksj+YF18EM1rxpfQriDliZQ5PfeJVRMjmDErQKCa3bpBKgVo/rewpSpDMKv0OF QfgX2LmziOIGdhBm1FxXdpU92ylg+SKqENISy+T4Vx+vmYRgPAeqMxTvslNU7ahedwIu g2ciF7CYvP4QFsvVupKUgNlTD719U56RO1WRZ62hurGKbbzQ8q7rB4Qf96eq+pldY/nl BRH7NnpWMyDLe+iI639v53tEALp4QnBKTPLETIoWkbYWW5ph6RRkmp74H2uQmoDv23+D cNOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tZwhFYjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v14si566815ilu.170.2021.11.02.15.34.55; Tue, 02 Nov 2021 15:35:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=tZwhFYjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbhKBWgS (ORCPT + 99 others); Tue, 2 Nov 2021 18:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229835AbhKBWgR (ORCPT ); Tue, 2 Nov 2021 18:36:17 -0400 Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 300F9C061205 for ; Tue, 2 Nov 2021 15:33:42 -0700 (PDT) Received: by mail-il1-x12b.google.com with SMTP id s14so595520ilv.10 for ; Tue, 02 Nov 2021 15:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=XScYOlOeUciU4dBSUquEeTulM7j610reAXR2BVP/Na8=; b=tZwhFYjzuf+Soya8upKb4a0hV8W5rHBj5kxsRmtqEvDwWKhowXAPRSThRGbjAa6LIP R7Ur8ZOzURdaLzRwXP0HIa4lJGGLnoy/EuOjVRNZo1Wzh6t+ZLfqb4MWxj42iLz+QKCJ mEyOtl2CgdfK/zgAUW/Y2fHfoK6rjmKpELGcv2ASM02UJ5wE1WViclLT+mlawVkIy3XK YQ3gXZwRONJeH1hu1sdz4jmf+kIT45+d810NVdo09WCh8ca9ALQho33MszSuQkhlImwi uP5IweaAEZ8d8lIP7EjRTzlM9ndLYmJ+KcllkSJ2xYA5xy5v7yPKdsWQt+4ltBTAqcQf 6vYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=XScYOlOeUciU4dBSUquEeTulM7j610reAXR2BVP/Na8=; b=S+17iSyo7R4zinIrY/tG3oYA4q2tBVyzHte0fwJYOtMGIwQTTj827yVDEuhJnChZ61 nMyJSlv/4EYe0GxiTW2913y5Ns7nYBarFNFRDxk/8awWmafHe8qEYETaZzjz3WSCWW3n F6saVAumY6Vhu/kaqQgWPzYz/QIJkDwCZKDcoMwqLUF3YXGROPqmMP2MeI7lTfNuwCgR gJpzL6OOb1QQehC69QN77e+6gQmX7LR8NxSdrRSxzJTS2eTcxoj67qcvNux1l/BeYesu cLL1gy+akixEWqAMeroQ6MepKZvE3r7Uy/E8XIbWQMZbXh2XHodjDFYps5znbouLLGtZ VY8g== X-Gm-Message-State: AOAM533Mlp5HvADMzd0tY+wp34EEaT/8pH4Q9BpxJ+4SQfIdpGpcbvUk HbVHh+IUKGTEG720kcE8o0aotjhyDNyowg== X-Received: by 2002:a05:6e02:1c2a:: with SMTP id m10mr6275229ilh.275.1635892421594; Tue, 02 Nov 2021 15:33:41 -0700 (PDT) Received: from [192.168.1.116] ([66.219.217.159]) by smtp.gmail.com with ESMTPSA id t14sm245628ilu.63.2021.11.02.15.33.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Nov 2021 15:33:41 -0700 (PDT) Subject: Re: [PATCH 03/21] block: Add bio_for_each_folio_all() To: "Darrick J. Wong" , Matthew Wilcox Cc: Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org References: <20211101203929.954622-1-willy@infradead.org> <20211101203929.954622-4-willy@infradead.org> <20211102222455.GI24307@magnolia> From: Jens Axboe Message-ID: <4ce6fb05-fe8d-6e4c-364a-0e2c9e8ee4ed@kernel.dk> Date: Tue, 2 Nov 2021 16:33:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211102222455.GI24307@magnolia> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/2/21 4:24 PM, Darrick J. Wong wrote: > On Tue, Nov 02, 2021 at 08:24:14PM +0000, Matthew Wilcox wrote: >> On Tue, Nov 02, 2021 at 12:13:22AM -0700, Christoph Hellwig wrote: >>> On Mon, Nov 01, 2021 at 08:39:11PM +0000, Matthew Wilcox (Oracle) wrote: >>>> +static inline >>>> +void bio_first_folio(struct folio_iter *fi, struct bio *bio, int i) >>> >>> Please fix the weird prototype formatting here. >> >> I dunno, it looks weirder this way: >> >> -static inline >> -void bio_first_folio(struct folio_iter *fi, struct bio *bio, int i) >> +static inline void bio_first_folio(struct folio_iter *fi, struct bio *bio, >> + int i) >> >> Anyway, I've made that change, but I still prefer it the way I had it. > > I /think/ Christoph meant: > > static inline void > bio_first_folio(...) > > Though the form that you've changed it to is also fine. I won't speak for Christoph, but basically everything else in block follows the: static inline void bio_first_folio(struct folio_iter *fi, struct bio *bio, int i) { } format, and this one should as well. -- Jens Axboe