On Fri, Aug 18, 2017 at 03:15:23PM -0600, Liu Bo wrote: > The BUG_ON() can be triggered when the caller is processing an invalid > extent inline ref, e.g. > > a shared data ref is offered instead of a extent data ref, such that > it tries to find a non-exist tree block and then btrfs_search_slot > returns 1 for no such item. > > This replaces the BUG_ON() with a WARN() followed by calling > btrfs_print_leaf() to show more details about what's going on and > returning -EINVAL to upper callers. > > Signed-off-by: Liu Bo <bo.li.liu@xxxxxxxxxx> Reviewed-by: David Sterba <dsterba@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
