Commit 4839c386 authored by David Sterba's avatar David Sterba
Browse files

btrfs: change BUG_ONs to assertions in btrfs_qgroup_trace_subtree()



The only caller do_walk_down() of btrfs_qgroup_trace_subtree() validates
the value of level and uses it several times before it's passed as an
argument. Same for root_eb that's called 'next' in the caller.

Change both BUG_ONs to assertions as this is to assure proper interface
use rather than real errors.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 56f335e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment