Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit d12765dc authored by Filipe Manana's avatar Filipe Manana Committed by David Sterba
Browse files

btrfs: use label to deduplicate error path at btrfs_force_cow_block()


At btrfs_force_cow_block() we have several error paths that need to
unlock the "cow" extent buffer, drop the reference on it and then return
an error. This is a bit verbose so add a label where we perform these
tasks and make the error paths jump to that label.

Signed-off-by: default avatarFilipe Manana <fdmanana@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent bb386803
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment