These two BUG_ON()s would never be true, ensured by callers' logic.
Reviewed-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
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)
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)