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>
This commit is contained in:
Qu Wenruo 2024-09-16 17:55:42 +09:30 committed by David Sterba
parent 8cca35cb29
commit c186345a6b

View File

@ -1272,8 +1272,7 @@ static inline void bio_list_put(struct bio_list *bio_list)
static void assert_rbio(struct btrfs_raid_bio *rbio) static void assert_rbio(struct btrfs_raid_bio *rbio)
{ {
if (!IS_ENABLED(CONFIG_BTRFS_DEBUG) || if (!IS_ENABLED(CONFIG_BTRFS_ASSERT))
!IS_ENABLED(CONFIG_BTRFS_ASSERT))
return; return;
/* /*