Btrfs: fixup error path in __btrfs_inc_extent_ref
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 11 Oct 2013 08:30:23 +0000 (16:30 +0800)
committerChris Mason <chris.mason@fusionio.com>
Tue, 12 Nov 2013 03:01:00 +0000 (22:01 -0500)
commit30d133fc221a0ec50030c33aa7bf6931503894c7
tree7621261cbc301b13d1946e5c20d68462018e50d3
parente649e587cbc66287b2a4bff8b2113ad679a2b8d8
Btrfs: fixup error path in __btrfs_inc_extent_ref

When we fail to add a reference after a non-inline insertion by some reasons,
eg. ENOSPC, we'll abort the transaction, but we don't return this error to
the caller who has to walk around again to find something wrong, that's
unnecessary.

Also fixup other error paths to keep it simple.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/extent-tree.c