Commit c186345a authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba
Browse files

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: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 8cca35cb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1272,8 +1272,7 @@ static inline void bio_list_put(struct bio_list *bio_list)

static void assert_rbio(struct btrfs_raid_bio *rbio)
{
	if (!IS_ENABLED(CONFIG_BTRFS_DEBUG) ||
	    !IS_ENABLED(CONFIG_BTRFS_ASSERT))
	if (!IS_ENABLED(CONFIG_BTRFS_ASSERT))
		return;

	/*