Skip to content
Commit 43baa579 authored by Filipe Brandenburger's avatar Filipe Brandenburger Committed by Chris Mason
Browse files

Btrfs: refactor error handling to drop inode in btrfs_create()



Refactor it by checking whether the inode has been created and needs to be
dropped (drop_inode_on_err) and also if the err variable is set. That way the
variable doesn't need to be set on each and every error handling block.

Signed-off-by: default avatarFilipe Brandenburger <filbranden@google.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 2794ed01
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