]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20d51db4f4311961977811b9e0678e65cb08eea8
tree7d5a5e7d51ad174efbaf46559e14a9eb8bd21cce
parentd75b7a48f32575ed0ac017052772df02f35eb354
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