Skip to content
Commit 16220c46 authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: add assertions where number of devices could go below 0



In preparation to add helper function to deduce the num_devices with
replace running, use assert instead of BUG_ON or WARN_ON. The number of
devices would not normally drop to 0 due to other checks so the assert
is sufficient.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
[ update changelog, adjust the assert condition ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent f8b00e0f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment