Home
last modified time | relevance | path

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

/linux-6.1.9/fs/btrfs/
Dtransaction.c161 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots() local
169 ASSERT(cur_trans->state == TRANS_STATE_COMMIT_DOING); in switch_commit_roots()
176 list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, in switch_commit_roots()
186 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
187 while (!list_empty(&cur_trans->dropped_roots)) { in switch_commit_roots()
188 root = list_first_entry(&cur_trans->dropped_roots, in switch_commit_roots()
191 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
194 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
196 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots()
251 struct btrfs_transaction *cur_trans; in join_transaction() local
[all …]
Dblock-group.c2890 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache() local
2893 if (list_empty(&cur_trans->dirty_bgs) || in btrfs_setup_space_cache()
2902 list_for_each_entry_safe(cache, tmp, &cur_trans->dirty_bgs, in btrfs_setup_space_cache()
2928 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups() local
2933 struct list_head *io = &cur_trans->io_bgs; in btrfs_start_dirty_block_groups()
2936 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
2937 if (list_empty(&cur_trans->dirty_bgs)) { in btrfs_start_dirty_block_groups()
2938 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
2941 list_splice_init(&cur_trans->dirty_bgs, &dirty); in btrfs_start_dirty_block_groups()
2942 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups()
[all …]
Ddisk-io.c5127 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, in btrfs_cleanup_dirty_bgs() argument
5132 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
5133 while (!list_empty(&cur_trans->dirty_bgs)) { in btrfs_cleanup_dirty_bgs()
5134 cache = list_first_entry(&cur_trans->dirty_bgs, in btrfs_cleanup_dirty_bgs()
5139 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
5142 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
5150 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
5153 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
5155 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs()
5161 while (!list_empty(&cur_trans->io_bgs)) { in btrfs_cleanup_dirty_bgs()
[all …]
Dextent-tree.c2204 struct btrfs_transaction *cur_trans; in check_delayed_ref() local
2209 cur_trans = root->fs_info->running_transaction; in check_delayed_ref()
2210 if (cur_trans) in check_delayed_ref()
2211 refcount_inc(&cur_trans->use_count); in check_delayed_ref()
2213 if (!cur_trans) in check_delayed_ref()
2216 delayed_refs = &cur_trans->delayed_refs; in check_delayed_ref()
2221 btrfs_put_transaction(cur_trans); in check_delayed_ref()
2228 btrfs_put_transaction(cur_trans); in check_delayed_ref()
2244 btrfs_put_transaction(cur_trans); in check_delayed_ref()
2278 btrfs_put_transaction(cur_trans); in check_delayed_ref()
/linux-6.1.9/drivers/spi/
Dspi-topcliff-pch.c181 struct spi_transfer *cur_trans; member
365 data->cur_trans = NULL; in pch_spi_handler()
526 if (data->cur_trans->speed_hz) { in pch_spi_set_tx()
528 pch_spi_set_baud_rate(data->master, data->cur_trans->speed_hz); in pch_spi_set_tx()
532 if (data->cur_trans->bits_per_word && in pch_spi_set_tx()
533 (data->current_msg->spi->bits_per_word != data->cur_trans->bits_per_word)) { in pch_spi_set_tx()
536 data->cur_trans->bits_per_word); in pch_spi_set_tx()
537 *bpw = data->cur_trans->bits_per_word; in pch_spi_set_tx()
546 data->bpw_len = data->cur_trans->len / (*bpw / 8); in pch_spi_set_tx()
549 size = data->cur_trans->len * sizeof(*data->pkt_tx_buff); in pch_spi_set_tx()
[all …]