Received: by 2002:ab2:2997:0:b0:1ec:cbc4:63fb with SMTP id n23csp553223lqb; Thu, 29 Feb 2024 08:19:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWN2ieHXDPguZdRgHW34ski4mCyWoQ7+AzZ3Abtz3qFzJNuto14nSCCZ7YrfoQA0OVEl4kRnt6Y3ezfQrXZzbuwTkq5LBR62XgleIUmXw== X-Google-Smtp-Source: AGHT+IHMx5aJM7A9ngtgjtnBe4aU9e/71HObQA9ZgWHM3Llx/SFRhEOvktPAQYuO65XIsK6v56iG X-Received: by 2002:a0c:e946:0:b0:68f:6c38:c4aa with SMTP id n6-20020a0ce946000000b0068f6c38c4aamr2864184qvo.35.1709223571223; Thu, 29 Feb 2024 08:19:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709223571; cv=pass; d=google.com; s=arc-20160816; b=SKcxJXr9RxI2wX0YFMETxF7d+9g1LdTHNbJPKpPyMdnVNGJpx7JtxbGr+G7teL2kY9 U1qrgvJRsSGSge46qMeU0gXproSYxqhQf4uryY2mdvWtQlb/A33fjARxVaXsPx8syAc9 sYnWJcF8ti9A8c+XTP8mCDl+Vpd5OlBkg1rMWhDzVLmKbQnguPr7iymOnmuRTGat4oTn ylJV27YeVvrBFiS1msu+v5DghlLtCjbWr8mQJZFg9B/PTtsvRA8I1WbikxqREU7zMsZO vL7x+a2Ks6b8FYpkQrGIeZODUGcWZitkxGJ2SkRL/p9Cg3aJD+pPKt1MaL1eLZwKP9SJ kaxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :reply-to:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=jIdEnYpHZmcsGwhfQfdpgrGo6yqv0axPmnBxwJinK4I=; fh=i/98itDML3hBwFg8dPSKmiGYV9usrWYm54a+YvmLhSU=; b=Dcxr9JwuYIxV9og2oXHXqBrBjUCvjTVkDHYT92Un+s0cUcUJrbXfqsO+sZpJIAIbmF E44BVSGOviBlffr+f5HtCzs8uczGTqB49aXQvS7D2/2dtljCcExYBS6sn+m1tWrSsiLE rwN3MYym+r8Pfln22126H7Yumxsroz4/KpkrzjdIM9HT5NPQi0NfLBxS9IGz+zvHMmlU waxTv00/201RnDcBZkfnNma13Q3Mqienwn0t14ygfOe40v7EoQKBpVqMpoPI6ce0d3aX fVwzF5Q13YlG4S8T0ZrOCh/YmTxfXtKM0wviaB4TBUwxxXHkXoIHscfxX1zTivG7149a 0fRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=VNP3auhV; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=VNP3auhV; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-87048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87048-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eo3-20020ad45943000000b0068fe3631946si1544910qvb.387.2024.02.29.08.19.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 08:19:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-87048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=VNP3auhV; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=VNP3auhV; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-87048-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-87048-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E1CA41C2259D for ; Thu, 29 Feb 2024 16:19:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C2E113443F; Thu, 29 Feb 2024 15:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="VNP3auhV"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="v9Swsebb"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="VNP3auhV"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="v9Swsebb" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 808BC13442A; Thu, 29 Feb 2024 15:59:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709222358; cv=none; b=GUGRzdGxNLg/tN+yrcWyuvaiB/Rmo2D0PlRHQzg4PASkTjc10z5SYgUqD0G6q5kgSgCrZWdlXHUPIy2uz0ojTXhmmdLuDDRSbYRA9bP7R0ehZOK2Qb+vqLQnQ9YreJb1C6MMJbtkmBjUWJsHpPac1q1cAuYrxsMNIInLEGgR6g4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709222358; c=relaxed/simple; bh=K9Fpeh3sdJ+G4Wuq+GdGrrJ4JISy6co0YpZVHKQ/UT4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=I+Vpetx7hlV16/CpiuIVadmmra7doNh2PD7WZjchAwSCuvU6in8tOC2CDH8yOJ0IqgoyJGSuwTyO3qv6Tfu8vjAynApdCE5sB2mWI2S6szyaBGMUrHezpS17VXCqkUJhFOd94k1dV35Lw8kOWkf+ts0W6x2+hdynAkXTqLsYink= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=VNP3auhV; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=v9Swsebb; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=VNP3auhV; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=v9Swsebb; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 747E321227; Thu, 29 Feb 2024 15:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709222354; 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: in-reply-to:in-reply-to:references:references; bh=jIdEnYpHZmcsGwhfQfdpgrGo6yqv0axPmnBxwJinK4I=; b=VNP3auhV4Lz/0p6UVstn8dPkV0yn/+bf3Y+Jcoe6Was6QeWfVMxiiOzAZWG9hk31/+GUru hN1wwGKlV/JQ/DE9jaf+zFzntbIboEuMm6vnCUWXaSM9bVQwwYHVntfzuXFLum+kC6VABY qFuu2N6O+jiJInu+PpNhhNgOkxGUKDA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709222354; 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: in-reply-to:in-reply-to:references:references; bh=jIdEnYpHZmcsGwhfQfdpgrGo6yqv0axPmnBxwJinK4I=; b=v9SwsebbqqDi1dNAz8HufuZpU+isTwzPifGAhe9vT+fsFftmEkBLKt65SkGm0O6fc4rUCa fAneXOabUhnEtmBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1709222354; 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: in-reply-to:in-reply-to:references:references; bh=jIdEnYpHZmcsGwhfQfdpgrGo6yqv0axPmnBxwJinK4I=; b=VNP3auhV4Lz/0p6UVstn8dPkV0yn/+bf3Y+Jcoe6Was6QeWfVMxiiOzAZWG9hk31/+GUru hN1wwGKlV/JQ/DE9jaf+zFzntbIboEuMm6vnCUWXaSM9bVQwwYHVntfzuXFLum+kC6VABY qFuu2N6O+jiJInu+PpNhhNgOkxGUKDA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1709222354; 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: in-reply-to:in-reply-to:references:references; bh=jIdEnYpHZmcsGwhfQfdpgrGo6yqv0axPmnBxwJinK4I=; b=v9SwsebbqqDi1dNAz8HufuZpU+isTwzPifGAhe9vT+fsFftmEkBLKt65SkGm0O6fc4rUCa fAneXOabUhnEtmBQ== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 55B9A13451; Thu, 29 Feb 2024 15:59:14 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id nOq0FNKp4GXcTgAAn2gu4w (envelope-from ); Thu, 29 Feb 2024 15:59:14 +0000 Date: Thu, 29 Feb 2024 16:52:07 +0100 From: David Sterba To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Filipe Manana , Johannes Thumshirn , Josef Bacik , Boris Burkov , David Sterba , clm@fb.com, linux-btrfs@vger.kernel.org Subject: Re: [PATCH AUTOSEL 6.7 09/26] btrfs: add and use helper to check if block group is used Message-ID: <20240229155207.GA2604@suse.cz> Reply-To: dsterba@suse.cz References: <20240229154851.2849367-1-sashal@kernel.org> <20240229154851.2849367-9-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240229154851.2849367-9-sashal@kernel.org> User-Agent: Mutt/1.5.23.1-rc1 (2014-03-12) Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=VNP3auhV; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=v9Swsebb X-Spamd-Result: default: False [-0.39 / 50.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.30)[dsterba@suse.cz]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; BAYES_HAM(-0.38)[77.11%]; MIME_GOOD(-0.10)[text/plain]; REPLYTO_ADDR_EQ_FROM(0.00)[]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_SEVEN(0.00)[10]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Score: -0.39 X-Rspamd-Queue-Id: 747E321227 X-Spam-Level: X-Spam-Flag: NO X-Spamd-Bar: / On Thu, Feb 29, 2024 at 10:48:28AM -0500, Sasha Levin wrote: > From: Filipe Manana > > [ Upstream commit 1693d5442c458ae8d5b0d58463b873cd879569ed ] > > Add a helper function to determine if a block group is being used and make > use of it at btrfs_delete_unused_bgs(). This helper will also be used in > future code changes. The patch is not a prerequisite for any other stable patch, right? Then please drop if from all versions, it's a simple cleanup.