Btrfs: convert BUG_ON to WARN_ON
authorLiu Bo <bo.li.liu@oracle.com>
Tue, 14 Mar 2017 20:34:01 +0000 (13:34 -0700)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:25 +0000 (14:07 +0200)
commit539b50d2f68944e7c1184c68da5c535499cbccfe
tree99b29a8cc4d8d65bdaf969947f7a0bd3a0776eef
parent2b19a1fef7be743505f7af6ae47065a2253d6f4e
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>
fs/btrfs/volumes.c