Message ID | 1435952800-23922-1-git-send-email-fdmanana@kernel.org (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On Fri, Jul 03, 2015 at 08:46:40PM +0100, fdmanana@kernel.org wrote: > From: Filipe Manana <fdmanana@suse.com> ... > > Cc: stable@vger.kernel.org > Fixes: 50d9aa99bd35 ("Btrfs: make sure logged extents complete in the current transaction V3" > Signed-off-by: Filipe Manana <fdmanana@suse.com> Good catch and thanks for looking up the offending commit. Reviewed-by: David Sterba <dsterba@suse.com> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index c0f18e7..3f1a03d 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -1866,7 +1866,7 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans, } spin_lock(&root->fs_info->trans_lock); - list_splice(&trans->ordered, &cur_trans->pending_ordered); + list_splice_init(&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);