]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: convert BUG_ON()'s in relocate_tree_block
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:24:57 +0000 (15:24 -0500)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Apr 2021 17:10:17 +0000 (19:10 +0200)
commitc87ace4ef76398b72d7b8324423b427303264d52
tree39b6b9b7c4e7c2db2658413efe06e43a76e3fa08
parent666145350bcadc8f973767d2908f665048664763
btrfs: convert BUG_ON()'s in relocate_tree_block

We have a couple of BUG_ON()'s in relocate_tree_block() that can be
tripped if we have file system corruption.  Convert these to ASSERT()'s
so developers still get yelled at when they break the backref code, but
error out nicely for users so the whole box doesn't go down.

Reviewed-by: Qu Wenruo <wqu@suse.com>
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