]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: factor out check_removing_space_info() from btrfs_free_block_groups()
authorNaohiro Aota <naohiro.aota@wdc.com>
Wed, 23 Apr 2025 02:43:45 +0000 (11:43 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 10:18:38 +0000 (11:18 +0100)
commitd046ff8e554e4368975183cd3487a018939750a4
tree0f3d75601fe389444ac5c375a74956ec5d0bda30
parent3351d4825185b5715e5f9d20b6e4c64cf0aa122d
btrfs: factor out check_removing_space_info() from btrfs_free_block_groups()

[ Upstream commit 1cfdbe0d53b27b4b4a4f4cf2a4e430bc65ba2ba5 ]

Factor out check_removing_space_info() from btrfs_free_block_groups(). It
sanity checks a to-be-removed space_info. There is no functional change.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Stable-dep-of: a11224a016d6 ("btrfs: fix memory leaks in create_space_info() error paths")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/block-group.c