Lines Matching defs:trans
503 struct btrfs_transaction *trans;
506 * The checks for trans are just a formality, it should be set,
508 * lock, so be nice and check if trans is set, but ASSERT() so
512 trans = fs_info->running_transaction;
513 if (trans)
514 refcount_inc(&trans->use_count);
517 ASSERT(trans);
518 if (trans) {
519 if (atomic_dec_and_test(&trans->pending_ordered))
520 wake_up(&trans->pending_wait);
521 btrfs_put_transaction(trans);