Re: [PATCH 5.15 005/317] btrfs: add and use helper to check if block group is used

From: Sasha Levin
Date: Tue Mar 26 2024 - 15:24:03 EST


On Mon, Mar 25, 2024 at 07:25:56PM +0100, David Sterba wrote:
On Sun, Mar 24, 2024 at 07:29:45PM -0400, Sasha Levin wrote:
From: Filipe Manana <fdmanana@xxxxxxxx>

[ 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.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx>
Reviewed-by: Boris Burkov <boris@xxxxxx>
Signed-off-by: Filipe Manana <fdmanana@xxxxxxxx>
Reviewed-by: David Sterba <dsterba@xxxxxxxx>
Signed-off-by: David Sterba <dsterba@xxxxxxxx>
Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

Please drop this patch from all stable branches unless it's a
prerequisite for some other patch. This is clearly a cleanup.

Ack, thanks!

--
Thanks,
Sasha