aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-03-14 13:34:01 -0700
committerDavid Sterba <dsterba@suse.com>2017-04-18 14:07:25 +0200
commit539b50d2f68944e7c1184c68da5c535499cbccfe (patch)
tree99b29a8cc4d8d65bdaf969947f7a0bd3a0776eef /fs/btrfs
parentBtrfs: helper for ops that requires full stripe (diff)
downloadlinux-dev-539b50d2f68944e7c1184c68da5c535499cbccfe.tar.xz
linux-dev-539b50d2f68944e7c1184c68da5c535499cbccfe.zip
Btrfs: convert BUG_ON to WARN_ON
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 259bd2120da5..13574f37dc36 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -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)