Qu Wenruo 8289ed9f93 btrfs: replace the BUG_ON in btrfs_del_root_ref with proper error handling
I hit the BUG_ON() with generic/475 test case, and to my surprise, all
callers of btrfs_del_root_ref() are already aborting transaction, thus
there is not need for such BUG_ON(), just go to @out label and caller
will properly handle the error.

CC: stable@vger.kernel.org # 5.4+
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2021-12-08 15:45:27 +01:00
..
2021-09-02 09:21:27 -07:00
2021-06-22 14:11:57 +02:00
2019-11-18 23:43:44 +01:00
2021-06-22 14:11:57 +02:00
2021-08-23 13:19:09 +02:00
2021-10-29 12:38:43 +02:00
2021-10-29 12:38:43 +02:00
2021-10-26 19:08:05 +02:00