Lines Matching refs:trans
485 void btrfs_wait_logged_extents(struct btrfs_trans_handle *trans, in btrfs_wait_logged_extents() argument
527 atomic_inc(&trans->transaction->pending_ordered); in btrfs_wait_logged_extents()
612 struct btrfs_transaction *trans; in btrfs_remove_ordered_extent() local
621 trans = root->fs_info->running_transaction; in btrfs_remove_ordered_extent()
622 if (trans) in btrfs_remove_ordered_extent()
623 atomic_inc(&trans->use_count); in btrfs_remove_ordered_extent()
626 ASSERT(trans); in btrfs_remove_ordered_extent()
627 if (trans) { in btrfs_remove_ordered_extent()
628 if (atomic_dec_and_test(&trans->pending_ordered)) in btrfs_remove_ordered_extent()
629 wake_up(&trans->pending_wait); in btrfs_remove_ordered_extent()
630 btrfs_put_transaction(trans); in btrfs_remove_ordered_extent()