Re: [PATCH] btrfs: replace the BUG_ON() in btrfs_del_root_ref() with proper error handling
From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-12-01 16:49:12
From: Josef Bacik <josef@toxicpanda.com>
Date: 2021-12-01 16:49:12
On Wed, Dec 01, 2021 at 07:56:17PM +0800, Qu Wenruo wrote:
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. Signed-off-by: Qu Wenruo <redacted>
Reviewed-by: Josef Bacik <josef@toxicpanda.com> Thanks, Josef