Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4933020rwl; Tue, 28 Mar 2023 13:28:58 -0700 (PDT) X-Google-Smtp-Source: AKy350biAumi8S/f4mblOBjUTDEFPC15a4v82SKO+HlyVdZXhfoH754G/VR60RKd0sT2mwc689gs X-Received: by 2002:a17:902:ec8f:b0:19c:eaab:653d with SMTP id x15-20020a170902ec8f00b0019ceaab653dmr22042335plg.15.1680035337875; Tue, 28 Mar 2023 13:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680035337; cv=none; d=google.com; s=arc-20160816; b=x+Vgnst6498/W6HJqBowdYsFTmG5OCzUeVzBH03lpCrSWmPuUQvVsVMcIDKYWfgvH8 aQo+nGhkn6RHupHXT6KADtJaCwdUDKDAVi8YPbR6XCCtZy/9OnCj/1xnQda9vPtw3uFn p2KZm8TRxTM7YCV4E3wmchTSj983AE9NnnwZxSeB/BafzfAglxGoHCuqqMKFPN54QcVP YypxUz3w7K/IZ+ZLmNYKl3OxVA28BFqYGmbgeYNUPmQXtTRLWhtxLbQ3pOTKDzC1/dVq ZxDad8RX1a87yLmjc7URkNSsjl/u1Lm1NBTAzTJgBEPexOtXVq2NzZgzrNlTb7xKqHmI LvJQ== 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:dkim-signature:date; bh=/1PRkPAtZiO7+GA2eg+pzPnGLDw8cjg/JDzX3oBa/TI=; b=p2OOOA4hg4MPnG3dKlZVqQnZoVk1Q5svzxlbo3ZIPL3o2UT61zBBPKzS/6Vm25xUlL 33sjhS06olweIIo5PrT2fQOvD8150N8Ri5RfTd2BX0AW97q54ex8sxeV4iErVYUH7peV wPDoEkABVXt6MDQeRseRHXVbLIWAuuUcTbAw6vc3iW4FsNztr64P6bVZ7bP7ODp5wTQe bTB3DU4IBig1Z08uf8+0exSLEZftNKrb6mFKSk6p46bTM4mRbQlnR3h5BTb2MQMpWixw Lw4v5q2Nasso4uta9GI13oXFnJt2h0fIjoMld1obZh0NK/6W8B/jho+ZP4GePOUTnpRA J5Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=eI2Kq2e1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r134-20020a632b8c000000b0051384f6ede8si6136pgr.252.2023.03.28.13.28.46; Tue, 28 Mar 2023 13:28:57 -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=@linux.dev header.s=key1 header.b=eI2Kq2e1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjC1U2R (ORCPT + 99 others); Tue, 28 Mar 2023 16:28:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjC1U2Q (ORCPT ); Tue, 28 Mar 2023 16:28:16 -0400 Received: from out-4.mta0.migadu.com (out-4.mta0.migadu.com [91.218.175.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 819C6E5 for ; Tue, 28 Mar 2023 13:28:15 -0700 (PDT) Date: Tue, 28 Mar 2023 16:28:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1680035292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/1PRkPAtZiO7+GA2eg+pzPnGLDw8cjg/JDzX3oBa/TI=; b=eI2Kq2e1Mx+VW5MF7uu7y/MJkBWRyUfiNwHfHg4DxeQkBkihKNLikz09sVXRtrlr4+G8M1 nPhQr8opCHHOSe9GQWQc6Kedw9m0Wqxo+MvKY9YjqWGCoFEJxUcvTMPP5T58htlTfm+eka rasIPJYpojmSp3h11qityqYPROB/txo= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, willy@infradead.org, axboe@kernel.dk Subject: Re: [PATCH 0/2] bio iter improvements Message-ID: References: <20230327174402.1655365-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Mon, Mar 27, 2023 at 03:14:05PM -0700, Christoph Hellwig wrote: > On Mon, Mar 27, 2023 at 01:44:00PM -0400, Kent Overstreet wrote: > > Small patch series cleaning up/standardizing bio_for_each_segment_all(), > > which means we can use the same guts for bio_for_each_folio_all(), > > considerably simplifying that code. > > > > The squashfs maintainer will want to look at and test those changes, > > that code was doing some slightly tricky things. The rest was a pretty > > mechanical conversion. > > Can you post a code size comparism for the before and after cases? 6.2: kent@moria:~/linux$ size ktest-out/kernel_build.x86_64/vmlinux text data bss dec hex filename 13234215 5355074 872448 19461737 128f669 ktest-out/kernel_build.x86_64/vmlinux With patches: kent@moria:~/linux$ size ktest-out/kernel_build.x86_64/vmlinux text data bss dec hex filename 13234215 5355578 872448 19462241 128f861 ktest-out/kernel_build.x86_64/vmlinux