]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: convert some BUG_ON()'s to ASSERT()'s in do_relocation
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:24:56 +0000 (15:24 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Apr 2021 15:25:19 +0000 (17:25 +0200)
commit3f7fba612b02cb6f723b6936ccbd6a9d4c1ddecc
treeec267ba84840487ec3c67235f54d18d02bf1035a
parent3d3ec059b9ccb4b6f1eaf9c0a03add554add4400
btrfs: convert some BUG_ON()'s to ASSERT()'s in do_relocation

A few of these are checking for correctness, and won't be triggered by
corrupted file systems, so convert them to ASSERT() instead of BUG_ON()
and add a comment explaining their existence.

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