summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r--fs/btrfs/disk-io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 2c18a4eb4d5a..dcaf55695e6f 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -1657,9 +1657,10 @@ static int transaction_kthread(void *arg)
1657 spin_unlock(&root->fs_info->trans_lock); 1657 spin_unlock(&root->fs_info->trans_lock);
1658 1658
1659 /* If the file system is aborted, this will always fail. */ 1659 /* If the file system is aborted, this will always fail. */
1660 trans = btrfs_join_transaction(root); 1660 trans = btrfs_attach_transaction(root);
1661 if (IS_ERR(trans)) { 1661 if (IS_ERR(trans)) {
1662 cannot_commit = true; 1662 if (PTR_ERR(trans) != -ENOENT)
1663 cannot_commit = true;
1663 goto sleep; 1664 goto sleep;
1664 } 1665 }
1665 if (transid == trans->transid) { 1666 if (transid == trans->transid) {