diff --git a/fs/btrfs/transaction.c b/fs/btrfs/transaction.c index 6607e354eae5..907f2d047b44 100644 --- a/fs/btrfs/transaction.c +++ b/fs/btrfs/transaction.c @@ -138,7 +138,6 @@ static const unsigned int btrfs_blocked_trans_types[TRANS_STATE_MAX] = { void btrfs_put_transaction(struct btrfs_transaction *transaction) { - WARN_ON(refcount_read(&transaction->use_count) == 0); if (refcount_dec_and_test(&transaction->use_count)) { BUG_ON(!list_empty(&transaction->list)); WARN_ON(!xa_empty(&transaction->delayed_refs.head_refs));