OSDN Git Service

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

btrfs_print_leaf() is used in btrfs_get_extent_inline_ref_type, so
here we really want to print the invalid value of ref type instead of
causing 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/print-tree.c