]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: convert logic BUG_ON()'s in replace_path to ASSERT()'s
authorJosef Bacik <josef@toxicpanda.com>
Fri, 12 Mar 2021 20:25:21 +0000 (15:25 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 May 2021 06:37:18 +0000 (08:37 +0200)
commit24f6803a6e207549d829720c3c5554602fc1b822
tree1164131882fdb4cc806e42474f0a0430853a9983
parentaa18bc1ff8a51f082d5b3b6d07693797637b4028
btrfs: convert logic BUG_ON()'s in replace_path to ASSERT()'s

[ Upstream commit 7a9213a93546e7eaef90e6e153af6b8fc7553f10 ]

A few BUG_ON()'s in replace_path are purely to keep us from making
logical mistakes, so replace them with ASSERT()'s.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/btrfs/relocation.c