]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7ad11f00d7cf5b657f34e5e69c5d7d9da496cf3a
tree7621261cbc301b13d1946e5c20d68462018e50d3
parentd8e80802232d21a993d754b4cec5283775a7d30e
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