commit | 30d133fc221a0ec50030c33aa7bf6931503894c7 | [log] [tgz] |
---|---|---|
author | Liu Bo <bo.li.liu@oracle.com> | Fri Oct 11 16:30:23 2013 +0800 |
committer | Chris Mason <chris.mason@fusionio.com> | Mon Nov 11 22:01:00 2013 -0500 |
tree | 7621261cbc301b13d1946e5c20d68462018e50d3 | |
parent | e649e587cbc66287b2a4bff8b2113ad679a2b8d8 [diff] |
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>