Btrfs: remove BUG() in add_data_reference
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 18 Aug 2017 21:15:22 +0000 (15:15 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Aug 2017 15:47:43 +0000 (17:47 +0200)
commitb14c55a191263889c379aeee85223bb72501824d
tree8cccacaf4359f741abd980c901ee13c185c1261a
parent07638ea5987e51715b35eb5a9a9e908f18ffabf7
Btrfs: remove BUG() in add_data_reference

Now that we have a helper to report invalid value of extent inline ref
type, we need to quit gracefully instead of throwing out a kernel panic.

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/relocation.c