btrfs: move transaction aborts to the point of failure
authorDavid Sterba <dsterba@suse.cz>
Tue, 18 Sep 2012 13:52:32 +0000 (07:52 -0600)
committerChris Mason <chris.mason@fusionio.com>
Tue, 9 Oct 2012 00:09:02 +0000 (20:09 -0400)
commit005d6427ac4f276d937a36ca6a1d62b181ed70bf
treea17de085350c5137e669774f0a810010997b95de
parent8732d44f806a9da9a7ca4d1704b8a1ed81639bc4
btrfs: move transaction aborts to the point of failure

Call btrfs_abort_transaction as early as possible when an error
condition is detected, that way the line number reported is useful
and we're not clueless anymore which error path led to the abort.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/ctree.h
fs/btrfs/extent-tree.c
fs/btrfs/root-tree.c
fs/btrfs/volumes.c