]> 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>
Mon, 1 Oct 2012 19:19:31 +0000 (15:19 -0400)
commita4f8cfcec12cc3c156b8d29a2aea41dd23ab6274
tree8201ae2635089e4f0547c73811befa61f71ba5b7
parente4b236730324841964878bc92514ff1932017cb9
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