Searched refs:cur_trans (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/fs/btrfs/ |
H A D | transaction.c | 178 struct btrfs_transaction *cur_trans = trans->transaction; in switch_commit_roots() local 186 ASSERT(cur_trans->state == TRANS_STATE_COMMIT_DOING); in switch_commit_roots() 193 list_for_each_entry_safe(root, tmp, &cur_trans->switch_commits, in switch_commit_roots() 203 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots() 204 while (!list_empty(&cur_trans->dropped_roots)) { in switch_commit_roots() 205 root = list_first_entry(&cur_trans->dropped_roots, in switch_commit_roots() 208 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots() 211 spin_lock(&cur_trans->dropped_roots_lock); in switch_commit_roots() 213 spin_unlock(&cur_trans->dropped_roots_lock); in switch_commit_roots() 268 struct btrfs_transaction *cur_trans; in join_transaction() local [all …]
|
H A D | block-group.c | 3283 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_setup_space_cache() local 3286 if (list_empty(&cur_trans->dirty_bgs) || in btrfs_setup_space_cache() 3295 list_for_each_entry_safe(cache, tmp, &cur_trans->dirty_bgs, in btrfs_setup_space_cache() 3321 struct btrfs_transaction *cur_trans = trans->transaction; in btrfs_start_dirty_block_groups() local 3326 struct list_head *io = &cur_trans->io_bgs; in btrfs_start_dirty_block_groups() 3329 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() 3330 if (list_empty(&cur_trans->dirty_bgs)) { in btrfs_start_dirty_block_groups() 3331 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() 3334 list_splice_init(&cur_trans->dirty_bgs, &dirty); in btrfs_start_dirty_block_groups() 3335 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_start_dirty_block_groups() [all …]
|
H A D | disk-io.c | 4815 void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, in btrfs_cleanup_dirty_bgs() argument 4820 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4821 while (!list_empty(&cur_trans->dirty_bgs)) { in btrfs_cleanup_dirty_bgs() 4822 cache = list_first_entry(&cur_trans->dirty_bgs, in btrfs_cleanup_dirty_bgs() 4827 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4830 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4838 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4841 spin_lock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4843 spin_unlock(&cur_trans->dirty_bgs_lock); in btrfs_cleanup_dirty_bgs() 4849 while (!list_empty(&cur_trans->io_bgs)) { in btrfs_cleanup_dirty_bgs() [all …]
|
H A D | extent-tree.c | 2244 struct btrfs_transaction *cur_trans; in check_delayed_ref() local 2249 cur_trans = root->fs_info->running_transaction; in check_delayed_ref() 2250 if (cur_trans) in check_delayed_ref() 2251 refcount_inc(&cur_trans->use_count); in check_delayed_ref() 2253 if (!cur_trans) in check_delayed_ref() 2256 delayed_refs = &cur_trans->delayed_refs; in check_delayed_ref() 2261 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2268 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2284 btrfs_put_transaction(cur_trans); in check_delayed_ref() 2318 btrfs_put_transaction(cur_trans); in check_delayed_ref()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-topcliff-pch.c | 181 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 …]
|