Lines Matching defs:trans
631 struct btrfs_transaction *trans;
634 * The checks for trans are just a formality, it should be set,
636 * lock, so be nice and check if trans is set, but ASSERT() so
640 trans = fs_info->running_transaction;
641 if (trans)
642 refcount_inc(&trans->use_count);
645 ASSERT(trans || BTRFS_FS_ERROR(fs_info));
646 if (trans) {
647 if (atomic_dec_and_test(&trans->pending_ordered))
648 wake_up(&trans->pending_wait);
649 btrfs_put_transaction(trans);