]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 4 Oct 2012 13:40:03 +0000 (09:40 -0400)
commit13c178c1f5ed561ecf7c364fce22db3237a21cb5
tree9bd50c0e37526efb89c686ff55fc9843ef0613cc
parent4bc5c6c57ccd58b361c8e0f618e83ed3965ae5e7
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