]> git.hungrycats.org Git - linux/commitdiff
Revert "Btrfs: fix list transaction->pending_ordered corruption"
authorZygo Blaxell <zblaxell@serenity.furryterror.org>
Mon, 27 Jul 2015 17:19:04 +0000 (13:19 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Mon, 27 Jul 2015 17:19:04 +0000 (13:19 -0400)
This reverts commit c04766dea5fe2e091bb1e6dcbe72820a6d3fc21f.

fs/btrfs/transaction.c

index 94e909c5a50342995ea960e38c1380f9d2132125..e2eca50a1f4c07c493f69a3c3f61aa5469af0c80 100644 (file)
@@ -1848,7 +1848,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
        }
 
        spin_lock(&root->fs_info->trans_lock);
-       list_splice_init(&trans->ordered, &cur_trans->pending_ordered);
+       list_splice(&trans->ordered, &cur_trans->pending_ordered);
        if (cur_trans->state >= TRANS_STATE_COMMIT_START) {
                spin_unlock(&root->fs_info->trans_lock);
                atomic_inc(&cur_trans->use_count);