Lines Matching refs:commit_transaction

123 					transaction_t *commit_transaction)  in journal_write_commit_record()  argument
142 header->h_sequence = cpu_to_be32(commit_transaction->t_tid); in journal_write_commit_record()
174 transaction_t *commit_transaction, in journal_submit_data_buffers() argument
196 while (commit_transaction->t_sync_datalist) { in journal_submit_data_buffers()
197 jh = commit_transaction->t_sync_datalist; in journal_submit_data_buffers()
214 commit_transaction); in journal_submit_data_buffers()
230 || jh->b_transaction != commit_transaction in journal_submit_data_buffers()
242 __journal_file_buffer(jh, commit_transaction, in journal_submit_data_buffers()
248 commit_transaction); in journal_submit_data_buffers()
254 __journal_file_buffer(jh, commit_transaction, in journal_submit_data_buffers()
275 trace_jbd_do_submit_data(journal, commit_transaction); in journal_submit_data_buffers()
289 transaction_t *commit_transaction; in journal_commit_transaction() local
323 commit_transaction = journal->j_running_transaction; in journal_commit_transaction()
324 J_ASSERT(commit_transaction->t_state == T_RUNNING); in journal_commit_transaction()
326 trace_jbd_start_commit(journal, commit_transaction); in journal_commit_transaction()
328 commit_transaction->t_tid); in journal_commit_transaction()
331 commit_transaction->t_state = T_LOCKED; in journal_commit_transaction()
333 trace_jbd_commit_locking(journal, commit_transaction); in journal_commit_transaction()
334 spin_lock(&commit_transaction->t_handle_lock); in journal_commit_transaction()
335 while (commit_transaction->t_updates) { in journal_commit_transaction()
340 if (commit_transaction->t_updates) { in journal_commit_transaction()
341 spin_unlock(&commit_transaction->t_handle_lock); in journal_commit_transaction()
345 spin_lock(&commit_transaction->t_handle_lock); in journal_commit_transaction()
349 spin_unlock(&commit_transaction->t_handle_lock); in journal_commit_transaction()
351 J_ASSERT (commit_transaction->t_outstanding_credits <= in journal_commit_transaction()
370 while (commit_transaction->t_reserved_list) { in journal_commit_transaction()
371 jh = commit_transaction->t_reserved_list; in journal_commit_transaction()
410 trace_jbd_commit_flushing(journal, commit_transaction); in journal_commit_transaction()
411 commit_transaction->t_state = T_FLUSH; in journal_commit_transaction()
412 journal->j_committing_transaction = commit_transaction; in journal_commit_transaction()
415 commit_transaction->t_log_start = journal->j_head; in journal_commit_transaction()
426 err = journal_submit_data_buffers(journal, commit_transaction, in journal_commit_transaction()
434 while (commit_transaction->t_locked_list) { in journal_commit_transaction()
437 jh = commit_transaction->t_locked_list->b_tprev; in journal_commit_transaction()
464 jh->b_transaction == commit_transaction && in journal_commit_transaction()
486 journal_write_revoke_records(journal, commit_transaction, WRITE_SYNC); in journal_commit_transaction()
494 J_ASSERT (commit_transaction->t_sync_datalist == NULL); in journal_commit_transaction()
504 commit_transaction->t_state = T_COMMIT; in journal_commit_transaction()
507 trace_jbd_commit_logging(journal, commit_transaction); in journal_commit_transaction()
508 J_ASSERT(commit_transaction->t_nr_buffers <= in journal_commit_transaction()
509 commit_transaction->t_outstanding_credits); in journal_commit_transaction()
513 while (commit_transaction->t_buffers) { in journal_commit_transaction()
517 jh = commit_transaction->t_buffers; in journal_commit_transaction()
530 if (!commit_transaction->t_buffers) in journal_commit_transaction()
557 header->h_sequence = cpu_to_be32(commit_transaction->t_tid); in journal_commit_transaction()
569 journal_file_buffer(descriptor, commit_transaction, in journal_commit_transaction()
589 commit_transaction->t_outstanding_credits--; in journal_commit_transaction()
608 flags = journal_write_metadata_buffer(commit_transaction, in journal_commit_transaction()
639 commit_transaction->t_buffers == NULL || in journal_commit_transaction()
688 while (commit_transaction->t_iobuf_list != NULL) { in journal_commit_transaction()
691 jh = commit_transaction->t_iobuf_list->b_tprev; in journal_commit_transaction()
720 jh = commit_transaction->t_shadow_list->b_tprev; in journal_commit_transaction()
730 journal_file_buffer(jh, commit_transaction, BJ_Forget); in journal_commit_transaction()
743 J_ASSERT (commit_transaction->t_shadow_list == NULL); in journal_commit_transaction()
749 while (commit_transaction->t_log_list != NULL) { in journal_commit_transaction()
752 jh = commit_transaction->t_log_list->b_tprev; in journal_commit_transaction()
779 J_ASSERT(commit_transaction->t_state == T_COMMIT); in journal_commit_transaction()
780 commit_transaction->t_state = T_COMMIT_RECORD; in journal_commit_transaction()
783 if (journal_write_commit_record(journal, commit_transaction)) in journal_commit_transaction()
796 J_ASSERT(commit_transaction->t_sync_datalist == NULL); in journal_commit_transaction()
797 J_ASSERT(commit_transaction->t_buffers == NULL); in journal_commit_transaction()
798 J_ASSERT(commit_transaction->t_checkpoint_list == NULL); in journal_commit_transaction()
799 J_ASSERT(commit_transaction->t_iobuf_list == NULL); in journal_commit_transaction()
800 J_ASSERT(commit_transaction->t_shadow_list == NULL); in journal_commit_transaction()
801 J_ASSERT(commit_transaction->t_log_list == NULL); in journal_commit_transaction()
809 while (commit_transaction->t_forget) { in journal_commit_transaction()
814 jh = commit_transaction->t_forget; in journal_commit_transaction()
823 J_ASSERT_JH(jh, jh->b_transaction == commit_transaction || in journal_commit_transaction()
894 __journal_insert_checkpoint(jh, commit_transaction); in journal_commit_transaction()
933 if (commit_transaction->t_forget) { in journal_commit_transaction()
943 J_ASSERT(commit_transaction->t_state == T_COMMIT_RECORD); in journal_commit_transaction()
945 commit_transaction->t_state = T_FINISHED; in journal_commit_transaction()
946 J_ASSERT(commit_transaction == journal->j_committing_transaction); in journal_commit_transaction()
947 journal->j_commit_sequence = commit_transaction->t_tid; in journal_commit_transaction()
963 if (commit_transaction->t_checkpoint_list == NULL && in journal_commit_transaction()
964 commit_transaction->t_checkpoint_io_list == NULL) { in journal_commit_transaction()
965 __journal_drop_transaction(journal, commit_transaction); in journal_commit_transaction()
968 journal->j_checkpoint_transactions = commit_transaction; in journal_commit_transaction()
969 commit_transaction->t_cpnext = commit_transaction; in journal_commit_transaction()
970 commit_transaction->t_cpprev = commit_transaction; in journal_commit_transaction()
972 commit_transaction->t_cpnext = in journal_commit_transaction()
974 commit_transaction->t_cpprev = in journal_commit_transaction()
975 commit_transaction->t_cpnext->t_cpprev; in journal_commit_transaction()
976 commit_transaction->t_cpnext->t_cpprev = in journal_commit_transaction()
977 commit_transaction; in journal_commit_transaction()
978 commit_transaction->t_cpprev->t_cpnext = in journal_commit_transaction()
979 commit_transaction; in journal_commit_transaction()
984 trace_jbd_end_commit(journal, commit_transaction); in journal_commit_transaction()