Lines Matching refs:jh
352 struct journal_head *jh; in jbd2_journal_commit_transaction() local
480 jh = commit_transaction->t_reserved_list; in jbd2_journal_commit_transaction()
481 JBUFFER_TRACE(jh, "reserved, unused: refile"); in jbd2_journal_commit_transaction()
486 if (jh->b_committed_data) { in jbd2_journal_commit_transaction()
487 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_commit_transaction()
489 spin_lock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
490 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
491 jh->b_committed_data = NULL; in jbd2_journal_commit_transaction()
492 spin_unlock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
494 jbd2_journal_refile_buffer(journal, jh); in jbd2_journal_commit_transaction()
580 jh = commit_transaction->t_buffers; in jbd2_journal_commit_transaction()
586 clear_buffer_jbddirty(jh2bh(jh)); in jbd2_journal_commit_transaction()
587 JBUFFER_TRACE(jh, "journal is aborting: refile"); in jbd2_journal_commit_transaction()
588 jbd2_buffer_abort_trigger(jh, in jbd2_journal_commit_transaction()
589 jh->b_frozen_data ? in jbd2_journal_commit_transaction()
590 jh->b_frozen_triggers : in jbd2_journal_commit_transaction()
591 jh->b_triggers); in jbd2_journal_commit_transaction()
592 jbd2_journal_refile_buffer(journal, jh); in jbd2_journal_commit_transaction()
655 atomic_inc(&jh2bh(jh)->b_count); in jbd2_journal_commit_transaction()
661 set_bit(BH_JWrite, &jh2bh(jh)->b_state); in jbd2_journal_commit_transaction()
662 JBUFFER_TRACE(jh, "ph3: write metadata"); in jbd2_journal_commit_transaction()
664 jh, &wbuf[bufs], blocknr); in jbd2_journal_commit_transaction()
681 write_tag_block(journal, tag, jh2bh(jh)->b_blocknr); in jbd2_journal_commit_transaction()
832 jh = commit_transaction->t_shadow_list->b_tprev; in jbd2_journal_commit_transaction()
833 bh = jh2bh(jh); in jbd2_journal_commit_transaction()
842 JBUFFER_TRACE(jh, "file as BJ_Forget"); in jbd2_journal_commit_transaction()
843 jbd2_journal_file_buffer(jh, commit_transaction, BJ_Forget); in jbd2_journal_commit_transaction()
844 JBUFFER_TRACE(jh, "brelse shadowed buffer"); in jbd2_journal_commit_transaction()
932 jh = commit_transaction->t_forget; in jbd2_journal_commit_transaction()
934 bh = jh2bh(jh); in jbd2_journal_commit_transaction()
940 spin_lock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
941 J_ASSERT_JH(jh, jh->b_transaction == commit_transaction); in jbd2_journal_commit_transaction()
956 if (jh->b_committed_data) { in jbd2_journal_commit_transaction()
957 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
958 jh->b_committed_data = NULL; in jbd2_journal_commit_transaction()
959 if (jh->b_frozen_data) { in jbd2_journal_commit_transaction()
960 jh->b_committed_data = jh->b_frozen_data; in jbd2_journal_commit_transaction()
961 jh->b_frozen_data = NULL; in jbd2_journal_commit_transaction()
962 jh->b_frozen_triggers = NULL; in jbd2_journal_commit_transaction()
964 } else if (jh->b_frozen_data) { in jbd2_journal_commit_transaction()
965 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
966 jh->b_frozen_data = NULL; in jbd2_journal_commit_transaction()
967 jh->b_frozen_triggers = NULL; in jbd2_journal_commit_transaction()
971 cp_transaction = jh->b_cp_transaction; in jbd2_journal_commit_transaction()
973 JBUFFER_TRACE(jh, "remove from old cp transaction"); in jbd2_journal_commit_transaction()
975 __jbd2_journal_remove_checkpoint(jh); in jbd2_journal_commit_transaction()
993 if (buffer_freed(bh) && !jh->b_next_transaction) { in jbd2_journal_commit_transaction()
1021 JBUFFER_TRACE(jh, "add to new checkpointing trans"); in jbd2_journal_commit_transaction()
1022 __jbd2_journal_insert_checkpoint(jh, commit_transaction); in jbd2_journal_commit_transaction()
1036 if (!jh->b_next_transaction) in jbd2_journal_commit_transaction()
1039 JBUFFER_TRACE(jh, "refile or unfile buffer"); in jbd2_journal_commit_transaction()
1040 drop_ref = __jbd2_journal_refile_buffer(jh); in jbd2_journal_commit_transaction()
1041 spin_unlock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
1043 jbd2_journal_put_journal_head(jh); in jbd2_journal_commit_transaction()