btrfs: make assert_rbio() to only check CONFIG_BTRFS_ASSERT
authorQu Wenruo <wqu@suse.com>
Mon, 16 Sep 2024 08:25:42 +0000 (17:55 +0930)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:12 +0000 (14:34 +0100)
commitc186345a6b4b8ff082e5ef9515b782704dbba6be
tree6c3321485a00dd90515665cc2b392339988741d0
parent8cca35cb29f81eba3e96ec44dad8696c8a2f9138
btrfs: make assert_rbio() to only check CONFIG_BTRFS_ASSERT

According to the description, CONFIG_BTRFS_DEBUG is only for extra
debug info, meanwhile sanity checks should be managed by
CONFIG_BTRFS_ASSERT.

There is no need to check both to enable assert_rbio().

Just remove the check for CONFIG_BTRFS_DEBUG.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c