Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 539b50d2 authored by Liu Bo's avatar Liu Bo Committed by David Sterba
Browse files

Btrfs: convert BUG_ON to WARN_ON



These two BUG_ON()s would never be true, ensured by callers' logic.

Reviewed-by: default avatarQu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: default avatarLiu Bo <bo.li.liu@oracle.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2b19a1fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5174,7 +5174,7 @@ unsigned long btrfs_full_stripe_len(struct btrfs_fs_info *fs_info,
	unsigned long len = fs_info->sectorsize;

	em = get_chunk_map(fs_info, logical, len);
	BUG_ON(IS_ERR(em));
	WARN_ON(IS_ERR(em));

	map = em->map_lookup;
	if (map->type & BTRFS_BLOCK_GROUP_RAID56_MASK)
@@ -5191,7 +5191,7 @@ int btrfs_is_parity_mirror(struct btrfs_fs_info *fs_info,
	int ret = 0;

	em = get_chunk_map(fs_info, logical, len);
	BUG_ON(IS_ERR(em));
	WARN_ON(IS_ERR(em));

	map = em->map_lookup;
	if (map->type & BTRFS_BLOCK_GROUP_RAID56_MASK)