]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: convert BUG_ON in btrfs_reloc_cow_block() to proper error handling
authorJosef Bacik <josef@toxicpanda.com>
Thu, 3 Oct 2024 15:43:03 +0000 (11:43 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:17 +0000 (12:50 +0100)
commit13dae4fa17be27a80830cc165a18738e72764abc
tree4eba4a34752845e89bd3d92bf6629d2f5b4c6df0
parent367b72fa18b0e7e0be7e23f23efcf571805439de
btrfs: convert BUG_ON in btrfs_reloc_cow_block() to proper error handling

[ Upstream commit 6a4730b325aaa48f7a5d5ba97aff0a955e2d9cec ]

This BUG_ON is meant to catch backref cache problems, but these can
arise from either bugs in the backref cache or corruption in the extent
tree.  Fix it to be a proper error.

Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/relocation.c