--- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1461,7 +1461,7 @@ static int qgroup_account_snapshot(struc ret = btrfs_run_delayed_refs(trans, (unsigned long)-1); if (ret) { btrfs_abort_transaction(trans, ret); - goto out; + return ret; } /*