Home
last modified time | relevance | path

Searched refs:cur_trans (Results 1 – 4 of 4) sorted by relevance

/linux-4.4.14/fs/btrfs/
Dtransaction.c171 struct btrfs_transaction *cur_trans; in join_transaction() local
182 cur_trans = fs_info->running_transaction; in join_transaction()
183 if (cur_trans) { in join_transaction()
184 if (cur_trans->aborted) { in join_transaction()
186 return cur_trans->aborted; in join_transaction()
188 if (btrfs_blocked_trans_types[cur_trans->state] & type) { in join_transaction()
192 atomic_inc(&cur_trans->use_count); in join_transaction()
193 atomic_inc(&cur_trans->num_writers); in join_transaction()
194 extwriter_counter_inc(cur_trans, type); in join_transaction()
213 cur_trans = kmem_cache_alloc(btrfs_transaction_cachep, GFP_NOFS); in join_transaction()
[all …]
Dextent-tree.c3477 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache() local
3480 if (list_empty(&cur_trans->dirty_bgs) || in btrfs_setup_space_cache()
3489 list_for_each_entry_safe(cache, tmp, &cur_trans->dirty_bgs, in btrfs_setup_space_cache()
3515 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups() local
3520 struct list_head *io = &cur_trans->io_bgs; in btrfs_start_dirty_block_groups()
3524 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
3525 if (list_empty(&cur_trans->dirty_bgs)) { in btrfs_start_dirty_block_groups()
3526 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
3529 list_splice_init(&cur_trans->dirty_bgs, &dirty); in btrfs_start_dirty_block_groups()
3530 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
[all …]
Ddisk-io.c4364 void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, in btrfs_cleanup_one_transaction() argument
4367 btrfs_destroy_delayed_refs(cur_trans, root); in btrfs_cleanup_one_transaction()
4369 cur_trans->state = TRANS_STATE_COMMIT_START; in btrfs_cleanup_one_transaction()
4372 cur_trans->state = TRANS_STATE_UNBLOCKED; in btrfs_cleanup_one_transaction()
4378 btrfs_destroy_marked_extents(root, &cur_trans->dirty_pages, in btrfs_cleanup_one_transaction()
4383 cur_trans->state =TRANS_STATE_COMPLETED; in btrfs_cleanup_one_transaction()
4384 wake_up(&cur_trans->commit_wait); in btrfs_cleanup_one_transaction()
/linux-4.4.14/drivers/spi/
Dspi-topcliff-pch.c188 struct spi_transfer *cur_trans; member
372 data->cur_trans = NULL; in pch_spi_handler()
563 if (data->cur_trans->speed_hz) { in pch_spi_set_tx()
565 pch_spi_set_baud_rate(data->master, data->cur_trans->speed_hz); in pch_spi_set_tx()
569 if (data->cur_trans->bits_per_word && in pch_spi_set_tx()
570 (data->current_msg->spi->bits_per_word != data->cur_trans->bits_per_word)) { in pch_spi_set_tx()
573 data->cur_trans->bits_per_word); in pch_spi_set_tx()
574 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx()
583 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx()
586 size = data->cur_trans->len * sizeof(*data->pkt_tx_buff); in pch_spi_set_tx()
[all …]