]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/transaction.c
Btrfs: fix crash when starting transaction
[karo-tx-linux.git] / fs / btrfs / transaction.c
index 98e76a333596b272d6c83cdd816cc1fc0a05f56f..5f379affdf236119f4ab031ad6843a822a0ec24c 100644 (file)
@@ -493,6 +493,7 @@ again:
        smp_mb();
        if (cur_trans->state >= TRANS_STATE_BLOCKED &&
            may_wait_transaction(root, type)) {
+               current->journal_info = h;
                btrfs_commit_transaction(h, root);
                goto again;
        }