Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8DEE7C64EC4 for ; Fri, 3 Mar 2023 14:25:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbjCCOZo (ORCPT ); Fri, 3 Mar 2023 09:25:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229893AbjCCOZm (ORCPT ); Fri, 3 Mar 2023 09:25:42 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 071765B5C9 for ; Fri, 3 Mar 2023 06:25:42 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 7036368BEB; Fri, 3 Mar 2023 15:25:39 +0100 (CET) Date: Fri, 3 Mar 2023 15:25:39 +0100 From: Christoph Hellwig To: Johannes Thumshirn Cc: Christoph Hellwig , Chris Mason , Josef Bacik , David Sterba , "linux-btrfs@vger.kernel.org" Subject: Re: [PATCH 08/10] btrfs: store a pointer to a btrfs_bio in struct btrfs_bio_ctrl Message-ID: <20230303142539.GB32738@lst.de> References: <20230301134244.1378533-1-hch@lst.de> <20230301134244.1378533-9-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Thu, Mar 02, 2023 at 02:20:19PM +0000, Johannes Thumshirn wrote: > > { > > - struct bio *bio = bio_ctrl->bio; > > + struct btrfs_bio *bbio = bio_ctrl->bbio; > > int mirror_num = bio_ctrl->mirror_num; > > > > Can we keep a local bio in here? so we don't have to do > bbio->bio every other line? About half of these is going away in follow on patches, and in the next series or two most of the remaining onces will disappear as well.