]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: refactor error handling to drop inode in btrfs_create()
authorFilipe Brandenburger <filbranden@google.com>
Fri, 30 Nov 2012 03:40:09 +0000 (03:40 +0000)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:17 +0000 (20:46 -0500)
commitd33e7b24ab534d8ceab827f152d0cc4a3b28b1fd
tree2608bbb8fe5399d5e8c584c3807f2da449664247
parentce4cc1fc95f5991a201939cc98c30d2bc3efc868
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: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/inode.c