/fs/jbd2/ |
D | checkpoint.c | 32 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink_first() local 36 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink_first() 37 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink_first() 38 if (transaction->t_checkpoint_list == jh) in __buffer_unlink_first() 39 transaction->t_checkpoint_list = NULL; in __buffer_unlink_first() 50 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink() local 53 if (transaction->t_checkpoint_io_list == jh) { in __buffer_unlink() 54 transaction->t_checkpoint_io_list = jh->b_cpnext; in __buffer_unlink() 55 if (transaction->t_checkpoint_io_list == jh) in __buffer_unlink() 56 transaction->t_checkpoint_io_list = NULL; in __buffer_unlink() [all …]
|
D | transaction.c | 58 void jbd2_journal_free_transaction(transaction_t *transaction) in jbd2_journal_free_transaction() argument 60 if (unlikely(ZERO_OR_NULL_PTR(transaction))) in jbd2_journal_free_transaction() 62 kmem_cache_free(transaction_cache, transaction); in jbd2_journal_free_transaction() 81 transaction_t *transaction) in jbd2_get_transaction() argument 83 transaction->t_journal = journal; in jbd2_get_transaction() 84 transaction->t_state = T_RUNNING; in jbd2_get_transaction() 85 transaction->t_start_time = ktime_get(); in jbd2_get_transaction() 86 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction() 87 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction() 88 spin_lock_init(&transaction->t_handle_lock); in jbd2_get_transaction() [all …]
|
D | journal.c | 171 transaction_t *transaction; in kjournald2() local 237 transaction = journal->j_running_transaction; in kjournald2() 238 if (transaction && time_after_eq(jiffies, in kjournald2() 239 transaction->t_expires)) in kjournald2() 256 transaction = journal->j_running_transaction; in kjournald2() 257 if (transaction && time_after_eq(jiffies, transaction->t_expires)) { in kjournald2() 258 journal->j_commit_request = transaction->t_tid; in kjournald2() 334 int jbd2_journal_write_metadata_buffer(transaction_t *transaction, in jbd2_journal_write_metadata_buffer() argument 347 journal_t *journal = transaction->t_journal; in jbd2_journal_write_metadata_buffer() 463 __jbd2_journal_file_buffer(jh_in, transaction, BJ_Shadow); in jbd2_journal_write_metadata_buffer() [all …]
|
D | revoke.c | 524 void jbd2_journal_write_revoke_records(transaction_t *transaction, in jbd2_journal_write_revoke_records() argument 527 journal_t *journal = transaction->t_journal; in jbd2_journal_write_revoke_records() 548 write_one_revoke_record(transaction, log_bufs, in jbd2_journal_write_revoke_records() 565 static void write_one_revoke_record(transaction_t *transaction, in write_one_revoke_record() argument 571 journal_t *journal = transaction->t_journal; in write_one_revoke_record() 604 descriptor = jbd2_journal_get_descriptor_buffer(transaction, in write_one_revoke_record()
|
D | Makefile | 8 jbd2-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
|
/fs/btrfs/ |
D | transaction.c | 47 void btrfs_put_transaction(struct btrfs_transaction *transaction) in btrfs_put_transaction() argument 49 WARN_ON(refcount_read(&transaction->use_count) == 0); in btrfs_put_transaction() 50 if (refcount_dec_and_test(&transaction->use_count)) { in btrfs_put_transaction() 51 BUG_ON(!list_empty(&transaction->list)); in btrfs_put_transaction() 53 &transaction->delayed_refs.href_root.rb_root)); in btrfs_put_transaction() 55 &transaction->delayed_refs.dirty_extent_root)); in btrfs_put_transaction() 56 if (transaction->delayed_refs.pending_csums) in btrfs_put_transaction() 57 btrfs_err(transaction->fs_info, in btrfs_put_transaction() 59 transaction->delayed_refs.pending_csums); in btrfs_put_transaction() 67 while (!list_empty(&transaction->deleted_bgs)) { in btrfs_put_transaction() [all …]
|
D | transaction.h | 113 struct btrfs_transaction *transaction; member 161 BTRFS_I(inode)->last_trans = trans->transaction->transid; in btrfs_set_inode_last_trans() 176 delayed_refs = &trans->transaction->delayed_refs; in btrfs_set_skip_qgroup() 185 delayed_refs = &trans->transaction->delayed_refs; in btrfs_clear_skip_qgroup() 222 void btrfs_put_transaction(struct btrfs_transaction *transaction);
|
D | block-group.c | 930 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_remove_block_group() 935 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group() 941 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group() 944 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group() 952 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group() 953 mutex_unlock(&trans->transaction->cache_write_mutex); in btrfs_remove_block_group() 1049 spin_lock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group() 1052 spin_unlock(&trans->transaction->dirty_bgs_lock); in btrfs_remove_block_group() 1423 &trans->transaction->deleted_bgs); in btrfs_delete_unused_bgs() 2079 if (test_bit(BTRFS_TRANS_DIRTY_BG_RUN, &trans->transaction->flags)) { in btrfs_inc_block_group_ro() [all …]
|
D | delayed-ref.c | 56 atomic_read(&trans->transaction->delayed_refs.num_entries); in btrfs_should_throttle_delayed_refs() 656 &trans->transaction->delayed_refs; in update_existing_head_ref() 809 delayed_refs = &trans->transaction->delayed_refs; in add_delayed_ref_head() 973 delayed_refs = &trans->transaction->delayed_refs; in btrfs_add_delayed_tree_ref() 1069 delayed_refs = &trans->transaction->delayed_refs; in btrfs_add_delayed_data_ref() 1117 delayed_refs = &trans->transaction->delayed_refs; in btrfs_add_delayed_extent_op()
|
D | Makefile | 7 transaction.o inode.o file.o tree-defrag.o \
|
D | delalloc-space.c | 105 &trans->transaction->flags) || in btrfs_alloc_data_chunk_ondemand()
|
D | extent-tree.c | 237 delayed_refs = &trans->transaction->delayed_refs; in btrfs_lookup_extent_info() 1851 delayed_refs = &trans->transaction->delayed_refs; in cleanup_ref_head() 1899 &trans->transaction->delayed_refs; in btrfs_obtain_ref_head() 1939 delayed_refs = &trans->transaction->delayed_refs; in btrfs_run_delayed_refs_for_head() 2023 delayed_refs = &trans->transaction->delayed_refs; in __btrfs_run_delayed_refs() 2209 delayed_refs = &trans->transaction->delayed_refs; in btrfs_run_delayed_refs() 2958 deleted_bgs = &trans->transaction->deleted_bgs; in btrfs_finish_extent_commit() 3234 delayed_refs = &trans->transaction->delayed_refs; in check_ref_cleanup() 4514 set_extent_dirty(&trans->transaction->dirty_pages, buf->start, in btrfs_init_new_buffer()
|
D | free-space-cache.c | 242 mutex_lock(&trans->transaction->cache_write_mutex); in btrfs_truncate_free_space_cache() 276 mutex_unlock(&trans->transaction->cache_write_mutex); in btrfs_truncate_free_space_cache() 1189 spin_lock(&trans->transaction->dirty_bgs_lock); in __btrfs_wait_cache_io() 1205 spin_unlock(&trans->transaction->dirty_bgs_lock); in __btrfs_wait_cache_io()
|
D | qgroup.c | 1778 delayed_refs = &trans->transaction->delayed_refs; in btrfs_qgroup_trace_extent() 2675 delayed_refs = &trans->transaction->delayed_refs; in btrfs_qgroup_account_extents() 2751 if (trans->transaction->state != TRANS_STATE_COMMIT_DOING) in btrfs_run_qgroups() 2821 if (trans->transaction->state == TRANS_STATE_COMMIT_DOING) in btrfs_qgroup_inherit()
|
D | space-info.c | 508 if (test_bit(BTRFS_TRANS_HAVE_FREE_BGS, &trans->transaction->flags) || in may_commit_transaction()
|
D | volumes.c | 1897 set_bit(BTRFS_TRANS_HAVE_FREE_BGS, &trans->transaction->flags); in btrfs_free_dev_extent() 2986 &trans->transaction->dev_update_list); in btrfs_grow_device() 5002 &trans->transaction->dev_update_list); in btrfs_shrink_device() 5342 &trans->transaction->dev_update_list); in __btrfs_alloc_chunk()
|
D | super.c | 256 WRITE_ONCE(trans->transaction->aborted, errno); in __btrfs_abort_transaction()
|
D | backref.c | 1264 delayed_refs = &trans->transaction->delayed_refs;
|
D | ctree.c | 1532 if (trans->transaction != fs_info->running_transaction) in btrfs_cow_block() 1643 WARN_ON(trans->transaction != fs_info->running_transaction); in btrfs_realloc_node()
|
D | ioctl.c | 869 &trans->transaction->pending_snapshots); in create_snapshot()
|
/fs/ocfs2/ |
D | inode.c | 178 transaction_t *transaction; in ocfs2_iget() local 184 transaction = journal->j_running_transaction; in ocfs2_iget() 186 transaction = journal->j_committing_transaction; in ocfs2_iget() 187 if (transaction) in ocfs2_iget() 188 tid = transaction->t_tid; in ocfs2_iget()
|
/fs/ext4/ |
D | inode.c | 5155 transaction_t *transaction; in __ext4_iget() local 5160 transaction = journal->j_running_transaction; in __ext4_iget() 5162 transaction = journal->j_committing_transaction; in __ext4_iget() 5163 if (transaction) in __ext4_iget() 5164 tid = transaction->t_tid; in __ext4_iget()
|