Btrfs: remove BUG() in btrfs_extent_inline_ref_size
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 18 Aug 2017 21:15:20 +0000 (15:15 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2017 15:47:43 +0000 (17:47 +0200)
commit4335958de2a43c6790c7f6aa0682aa7189983fa4
tree40059bed2b506ad0fcccef1d38d41f0d5a71a438
parent3de28d579edbd35294bf44aee8402c804331bc37
Btrfs: remove BUG() in btrfs_extent_inline_ref_size

Now that btrfs_get_extent_inline_ref_type() can report if type is a
valid one and all callers can gracefully deal with that, we don't need
to crash here.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h