Lines Matching refs:tid

507 int jbd2_log_start_commit(journal_t *journal, tid_t tid)  in jbd2_log_start_commit()  argument
512 ret = __jbd2_log_start_commit(journal, tid); in jbd2_log_start_commit()
527 tid_t tid; in __jbd2_journal_force_commit() local
543 tid = transaction->t_tid; in __jbd2_journal_force_commit()
546 jbd2_log_start_commit(journal, tid); in __jbd2_journal_force_commit()
547 ret = jbd2_log_wait_commit(journal, tid); in __jbd2_journal_force_commit()
601 tid_t tid = journal->j_running_transaction->t_tid; in jbd2_journal_start_commit() local
603 __jbd2_log_start_commit(journal, tid); in jbd2_journal_start_commit()
607 *ptid = tid; in jbd2_journal_start_commit()
628 int jbd2_trans_will_send_data_barrier(journal_t *journal, tid_t tid) in jbd2_trans_will_send_data_barrier() argument
637 if (tid_geq(journal->j_commit_sequence, tid)) in jbd2_trans_will_send_data_barrier()
640 if (!commit_trans || commit_trans->t_tid != tid) { in jbd2_trans_will_send_data_barrier()
667 int jbd2_log_wait_commit(journal_t *journal, tid_t tid) in jbd2_log_wait_commit() argument
678 if (tid_gt(tid, journal->j_commit_sequence) && in jbd2_log_wait_commit()
680 journal->j_committing_transaction->t_tid != tid)) { in jbd2_log_wait_commit()
687 if (!tid_geq(journal->j_commit_request, tid)) { in jbd2_log_wait_commit()
690 __func__, journal->j_commit_request, tid); in jbd2_log_wait_commit()
693 while (tid_gt(tid, journal->j_commit_sequence)) { in jbd2_log_wait_commit()
695 tid, journal->j_commit_sequence); in jbd2_log_wait_commit()
699 !tid_gt(tid, journal->j_commit_sequence)); in jbd2_log_wait_commit()
716 int jbd2_fc_begin_commit(journal_t *journal, tid_t tid) in jbd2_fc_begin_commit() argument
728 if (tid_geq(journal->j_commit_sequence, tid)) { in jbd2_fc_begin_commit()
756 static int __jbd2_fc_end_commit(journal_t *journal, tid_t tid, bool fallback) in __jbd2_fc_end_commit() argument
759 journal->j_fc_cleanup_callback(journal, 0, tid); in __jbd2_fc_end_commit()
768 return jbd2_complete_transaction(journal, tid); in __jbd2_fc_end_commit()
780 tid_t tid; in jbd2_fc_end_commit_fallback() local
783 tid = journal->j_running_transaction ? in jbd2_fc_end_commit_fallback()
786 return __jbd2_fc_end_commit(journal, tid, true); in jbd2_fc_end_commit_fallback()
791 int jbd2_transaction_committed(journal_t *journal, tid_t tid) in jbd2_transaction_committed() argument
797 journal->j_running_transaction->t_tid == tid) in jbd2_transaction_committed()
800 journal->j_committing_transaction->t_tid == tid) in jbd2_transaction_committed()
814 int jbd2_complete_transaction(journal_t *journal, tid_t tid) in jbd2_complete_transaction() argument
820 journal->j_running_transaction->t_tid == tid) { in jbd2_complete_transaction()
821 if (journal->j_commit_request != tid) { in jbd2_complete_transaction()
824 jbd2_log_start_commit(journal, tid); in jbd2_complete_transaction()
828 journal->j_committing_transaction->t_tid == tid)) in jbd2_complete_transaction()
834 return jbd2_log_wait_commit(journal, tid); in jbd2_complete_transaction()
1052 int jbd2_journal_get_log_tail(journal_t *journal, tid_t *tid, in jbd2_journal_get_log_tail() argument
1062 *tid = transaction->t_tid; in jbd2_journal_get_log_tail()
1065 *tid = transaction->t_tid; in jbd2_journal_get_log_tail()
1068 *tid = transaction->t_tid; in jbd2_journal_get_log_tail()
1071 *tid = journal->j_transaction_sequence; in jbd2_journal_get_log_tail()
1074 ret = tid_gt(*tid, journal->j_tail_sequence); in jbd2_journal_get_log_tail()
1091 int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block) in __jbd2_update_log_tail() argument
1104 ret = jbd2_journal_update_sb_log_tail(journal, tid, block, REQ_FUA); in __jbd2_update_log_tail()
1113 trace_jbd2_update_log_tail(journal, tid, block, freed); in __jbd2_update_log_tail()
1117 journal->j_tail_sequence, tid, block, freed); in __jbd2_update_log_tail()
1120 journal->j_tail_sequence = tid; in __jbd2_update_log_tail()
1133 void jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block) in jbd2_update_log_tail() argument
1136 if (tid_gt(tid, journal->j_tail_sequence)) in jbd2_update_log_tail()
1137 __jbd2_update_log_tail(journal, tid, block); in jbd2_update_log_tail()
2473 tid_t tid = transaction->t_tid; in jbd2_journal_flush() local
2476 jbd2_log_wait_commit(journal, tid); in jbd2_journal_flush()