Skip to content

Commit 65d4f4c

Browse files
Josef Bacikkdave
authored andcommitted
Btrfs: end transaction if we abort when creating uuid root
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>
1 parent 1691cf1 commit 65d4f4c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/btrfs/volumes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4230,6 +4230,7 @@ int btrfs_create_uuid_tree(struct btrfs_fs_info *fs_info)
42304230
if (IS_ERR(uuid_root)) {
42314231
ret = PTR_ERR(uuid_root);
42324232
btrfs_abort_transaction(trans, tree_root, ret);
4233+
btrfs_end_transaction(trans, tree_root);
42334234
return ret;
42344235
}
42354236

0 commit comments

Comments
 (0)