Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp546503rdh; Thu, 23 Nov 2023 11:01:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IFm03Wq54hJr18rUPzK5jQBh4neRKGAQ/lD6zXyUlw56kSJ8gbP+znVvQa6BeLi7PNAcQZ0 X-Received: by 2002:a17:90b:4f8e:b0:27d:5964:4ee6 with SMTP id qe14-20020a17090b4f8e00b0027d59644ee6mr400061pjb.2.1700766061974; Thu, 23 Nov 2023 11:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700766061; cv=none; d=google.com; s=arc-20160816; b=I8Qw6vSnwa5MOwMk9RruIZ51GzfAWG1GQoOmR4r+/9hs2M419m/VyNG3fdc8daet6O OxXZWft6Vb2A9qalQuaNpwPN4rgdutueLzbplpvJ6gv3mgxRNPJ7LH2vl2KvAJYbE9SL fwdsBcjRv9T1HzRa/t0BlMUWY/4trngzzb8BfVxAGI0ad/j4aUPcNr12aQrBh3vO5q7p kfJdlD/ZM8caibTz9pNvjSYI5jAxquweWQG/bdCIFB0CCM2yfRhZTK1Vv9x9kRMOm8mV txU334WejdO4cucl8x1ZuMkS/QKAwGGoGJa4sdLgSgYitdxq8MjJfAxmWuNDBXXURqOF lLlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=wDA8dmYxhpCdPSbLyUHBYmKqDFaNlmT3atNokd9KUXA=; fh=+Bjyo0nBI5kbb4+JBr3ppVY45betNPSUN6JRZhVqoUc=; b=QuYDVghVBQfkt70NHXq/ir7yLG0jCmbMc0Vx8xEFRhOEPUDTvNzPvie7qRZTFH+FDc uekxPd2HfjzVsVliKhxlaMJ60aiLOSW22Jvaa4ImruahmytcIAvhNCcXoQKTE/pZJVx/ 13PLfSNEONPctfJlZIYmWlSFz14ZByvNq6hM+u2PaRde3+SXpRihSITLKFequdJZFB/r w4HOV3+kj5euYB1elUPy83efeOz6UNddWd2jrENAQwTXVvAKUehCaeMdXhpRDXNihCfS FrJjniJdNaJAlzZ6xrkBBC+5qri6ACdH0PbmmQfT2URFlkxwCn9RQihEId3EgYwTM/ol G7Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="B//tGx8Y"; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id y35-20020a631823000000b005893b7094easi1777299pgl.554.2023.11.23.11.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 11:01:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="B//tGx8Y"; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CA8B38060C8C; Thu, 23 Nov 2023 11:00:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbjKWTA3 (ORCPT + 99 others); Thu, 23 Nov 2023 14:00:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjKWTA1 (ORCPT ); Thu, 23 Nov 2023 14:00:27 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1940B1B3; Thu, 23 Nov 2023 11:00:34 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id C0C0A1FD64; Thu, 23 Nov 2023 19:00:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1700766031; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wDA8dmYxhpCdPSbLyUHBYmKqDFaNlmT3atNokd9KUXA=; b=B//tGx8YniH1GiHs3keeEPe0/aUZ3Z26uolrBdLSEYVle9nFkqP27PnDkODrrDtJXKQAqF L9ovdJC8liFZFu99aQI9B0C7Mp9S5HxbVP9N7vPg6kGq3FW/m2P68KkDS73k/j931le1J9 Zp7QtwE8Z611BUbgZMmucxXWsIkimxA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1700766031; h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to: cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wDA8dmYxhpCdPSbLyUHBYmKqDFaNlmT3atNokd9KUXA=; b=lnfJ5d1+1xVgXi11COYBah+oKpqOI7rIDDJ1e32IQzDEQ6WL10n6L98RAyRAexOnOX+Fhf n796VCoqGlMbecAA== Received: from ds.suse.cz (ds.suse.cz [10.100.12.205]) by relay2.suse.de (Postfix) with ESMTP id A2F502C16B; Thu, 23 Nov 2023 19:00:31 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 6B3F0DA86C; Thu, 23 Nov 2023 19:53:22 +0100 (CET) Date: Thu, 23 Nov 2023 19:53:22 +0100 From: David Sterba To: Filipe Manana Cc: Johannes Thumshirn , Chris Mason , Josef Bacik , David Sterba , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Naohiro Aota Subject: Re: [PATCH v2 5/5] btrfs: reflow btrfs_free_tree_block Message-ID: <20231123185322.GB31451@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20231123-josef-generic-163-v2-0-ed1a79a8e51e@wdc.com> <20231123-josef-generic-163-v2-5-ed1a79a8e51e@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) X-Spamd-Bar: +++++++++++++++++ Authentication-Results: smtp-out2.suse.de; dkim=none; dmarc=none; spf=softfail (smtp-out2.suse.de: 149.44.160.134 is neither permitted nor denied by domain of dsterba@suse.cz) smtp.mailfrom=dsterba@suse.cz X-Rspamd-Server: rspamd1 X-Spamd-Result: default: False [17.29 / 50.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.30)[dsterba@suse.cz]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(3.00)[1.000]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; DMARC_NA(1.20)[suse.cz]; R_SPF_SOFTFAIL(4.60)[~all:c]; RWL_MAILSPIKE_GOOD(-1.00)[149.44.160.134:from]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MX_GOOD(-0.01)[]; NEURAL_SPAM_LONG(3.50)[1.000]; RCPT_COUNT_SEVEN(0.00)[9]; VIOLATED_DIRECT_SPF(3.50)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(2.20)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Spam-Score: 17.29 X-Rspamd-Queue-Id: C0C0A1FD64 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 23 Nov 2023 11:00:52 -0800 (PST) On Thu, Nov 23, 2023 at 04:33:02PM +0000, Filipe Manana wrote: > On Thu, Nov 23, 2023 at 3:48 PM Johannes Thumshirn > wrote: > > > > Reflow btrfs_free_tree_block() so that there is one level of indentation > > needed. > > > > This patch has no functional changes. > > > > Reviewed-by: Christoph Hellwig > > Reviewed-by: Josef Bacik > > Signed-off-by: Johannes Thumshirn > > --- > > fs/btrfs/extent-tree.c | 97 +++++++++++++++++++++++++------------------------- > > 1 file changed, 49 insertions(+), 48 deletions(-) > > > > diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c > > index 4044102271e9..093aaf7aeb3a 100644 > > --- a/fs/btrfs/extent-tree.c > > +++ b/fs/btrfs/extent-tree.c > > @@ -3426,6 +3426,7 @@ void btrfs_free_tree_block(struct btrfs_trans_handle *trans, > > { > > struct btrfs_fs_info *fs_info = trans->fs_info; > > struct btrfs_ref generic_ref = { 0 }; > > + struct btrfs_block_group *cache; > > While at it, can we rename 'cache' to something like 'bg'? > > The cache name comes from the times where the structure was named > btrfs_block_group_cache, and having it named cache is always > confusing. Agreed, using the new names in new code is highly recommended, unfortunatelly we still have too many places using 'cache'.