Btrfs: assert send doesn't attempt to start transactions
authorFilipe Manana <fdmanana@gmail.com>
Tue, 24 Jun 2014 16:48:28 +0000 (17:48 +0100)
committerChris Mason <clm@fb.com>
Sat, 28 Jun 2014 20:48:46 +0000 (13:48 -0700)
commit46c4e71e9b02a649c722f06569f5b6575da02dba
tree9e4d947c41be9ed97076a630bd80a6e7dcfba2b8
parentc39aa7056f50fa7b49265ea35c0f3eddb7c7be68
Btrfs: assert send doesn't attempt to start transactions

When starting a transaction just assert that current->journal_info
doesn't contain a send transaction stub, since send isn't supposed
to start transactions and when it finishes (either successfully or
not) it's supposed to set current->journal_info to NULL.

This is motivated by the change titled:

    Btrfs: fix crash when starting transaction

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/transaction.c