summaryrefslogtreecommitdiffstats
path: root/fs/btrfs
diff options
context:
space:
mode:
authorLiu Bo <bo.li.liu@oracle.com>2017-08-18 15:15:20 -0600
committerDavid Sterba <dsterba@suse.com>2017-08-21 17:47:43 +0200
commit4335958de2a43c6790c7f6aa0682aa7189983fa4 (patch)
tree40059bed2b506ad0fcccef1d38d41f0d5a71a438 /fs/btrfs
parent3de28d579edbd35294bf44aee8402c804331bc37 (diff)
downloadtalos-obmc-linux-4335958de2a43c6790c7f6aa0682aa7189983fa4.tar.gz
talos-obmc-linux-4335958de2a43c6790c7f6aa0682aa7189983fa4.zip
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/ctree.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 542db9d0dbcd..b7cfc74c1757 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1804,7 +1804,6 @@ static inline u32 btrfs_extent_inline_ref_size(int type)
if (type == BTRFS_EXTENT_DATA_REF_KEY)
return sizeof(struct btrfs_extent_data_ref) +
offsetof(struct btrfs_extent_inline_ref, offset);
- BUG();
return 0;
}
OpenPOWER on IntegriCloud