Btrfs: check return value of commit when recovering log
authorJosef Bacik <jbacik@fusionio.com>
Wed, 24 Apr 2013 20:40:05 +0000 (16:40 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:55:10 +0000 (15:55 -0400)
commitabefa55ac1f8cb8fb8cb4d7e8d619dc0859181ab
tree7d5a5e7d51ad174efbaf46559e14a9eb8bd21cce
parent32b0253803bf8e384a37a70f2dfffb2056e7d087
Btrfs: check return value of commit when recovering log

We need to check the return value of the commit in case something goes wrong,
otherwise we could end up going down the line and doing more stuff (like orphan
cleanup) before we notice we should have errored out.  We need to do this before
we free up the log_tree_root since the caller will handle all of that.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/tree-log.c