]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:14 +0000 (14:53 +0100)
commit6a4730b325aaa48f7a5d5ba97aff0a955e2d9cec
treedfecb5037f812f3c583f045b13a6ce14796af9d0
parent5324c4e10e9c2ce307a037e904c0d9671d7137d9
btrfs: convert BUG_ON in btrfs_reloc_cow_block() to proper error handling

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>
fs/btrfs/relocation.c