btrfs: improved readablity for add_inode_ref
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Fri, 17 Aug 2012 21:04:41 +0000 (14:04 -0700)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 00:09:02 +0000 (20:09 -0400)
commit5a1d7843ca4b3a9009bea87f85ad33854b910aea
tree37622948b54f5123c8b816a21f7f76a202f74710
parent0aa4a17d8232e7d8a42763b53bb9943bc0484b18
btrfs: improved readablity for add_inode_ref

Moved part of the code into a sub function and replaced most of the gotos
by ifs, hoping that it will be easier to read now.

Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Signed-off-by: Mark Fasheh <mfasheh@suse.de>
fs/btrfs/tree-log.c