Btrfs: don't start the log transaction if the log tree init fails
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 20 Feb 2014 10:08:53 +0000 (18:08 +0800)
committerJosef Bacik <jbacik@fb.com>
Mon, 10 Mar 2014 19:16:40 +0000 (15:16 -0400)
commite87ac1368700af66c295afa47e5c7df0d9d8b919
tree6e6aefc816113049e3296d979c4d7a32e97324e3
parent48cab2e0714913a63155f800a55609a4ff6a36b9
Btrfs: don't start the log transaction if the log tree init fails

The old code would start the log transaction even the log tree init
failed, it was unnecessary. Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
fs/btrfs/tree-log.c