Btrfs: end transaction if we abort when creating uuid root
authorJosef Bacik <jbacik@fb.com>
Wed, 23 Sep 2015 19:00:37 +0000 (15:00 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 31 May 2016 22:32:42 +0000 (00:32 +0200)
We still need to call btrfs_end_transaction if we call btrfs_abort_transaction,
otherwise we hang and make me super grumpy.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index 9c01824..673c72a 100644 (file)
@@ -4230,6 +4230,7 @@ int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info)
        if (IS_ERR(uuid_root)) {
                ret = PTR_ERR(uuid_root);
                btrfs_abort_transaction(trans, tree_root, ret);
+               btrfs_end_transaction(trans, tree_root);
                return ret;
        }