]> 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:06 +0000 (13:19 -0400)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Mon, 27 Jul 2015 17:19:06 +0000 (13:19 -0400)
This reverts commit babfd7c39eeb700abc6e3776fa064c099e820f22.

fs/btrfs/transaction.c

index e2eca50a1f4c07c493f69a3c3f61aa5469af0c80..5628e25250c0d2cca318f03d41f4e6d64b4d40e0 100644 (file)
@@ -758,7 +758,7 @@ static int __btrfs_end_transaction(struct btrfs_trans_handle *trans,
 
        if (!list_empty(&trans->ordered)) {
                spin_lock(&info->trans_lock);
-               list_splice_init(&trans->ordered, &cur_trans->pending_ordered);
+               list_splice(&trans->ordered, &cur_trans->pending_ordered);
                spin_unlock(&info->trans_lock);
        }