Lines Matching refs:jh
2861 static void journal_free_journal_head(struct journal_head *jh) in journal_free_journal_head() argument
2865 memset(jh, JBD2_POISON_FREE, sizeof(*jh)); in journal_free_journal_head()
2867 kmem_cache_free(jbd2_journal_head_cache, jh); in journal_free_journal_head()
2913 struct journal_head *jh; in jbd2_journal_add_journal_head() local
2922 jh = bh2jh(bh); in jbd2_journal_add_journal_head()
2933 jh = new_jh; in jbd2_journal_add_journal_head()
2936 bh->b_private = jh; in jbd2_journal_add_journal_head()
2937 jh->b_bh = bh; in jbd2_journal_add_journal_head()
2941 jh->b_jcount++; in jbd2_journal_add_journal_head()
2954 struct journal_head *jh = NULL; in jbd2_journal_grab_journal_head() local
2958 jh = bh2jh(bh); in jbd2_journal_grab_journal_head()
2959 jh->b_jcount++; in jbd2_journal_grab_journal_head()
2962 return jh; in jbd2_journal_grab_journal_head()
2968 struct journal_head *jh = bh2jh(bh); in __journal_remove_journal_head() local
2970 J_ASSERT_JH(jh, jh->b_transaction == NULL); in __journal_remove_journal_head()
2971 J_ASSERT_JH(jh, jh->b_next_transaction == NULL); in __journal_remove_journal_head()
2972 J_ASSERT_JH(jh, jh->b_cp_transaction == NULL); in __journal_remove_journal_head()
2973 J_ASSERT_JH(jh, jh->b_jlist == BJ_None); in __journal_remove_journal_head()
2975 J_ASSERT_BH(bh, jh2bh(jh) == bh); in __journal_remove_journal_head()
2980 jh->b_bh = NULL; /* debug, really */ in __journal_remove_journal_head()
2984 static void journal_release_journal_head(struct journal_head *jh, size_t b_size) in journal_release_journal_head() argument
2986 if (jh->b_frozen_data) { in journal_release_journal_head()
2988 jbd2_free(jh->b_frozen_data, b_size); in journal_release_journal_head()
2990 if (jh->b_committed_data) { in journal_release_journal_head()
2992 jbd2_free(jh->b_committed_data, b_size); in journal_release_journal_head()
2994 journal_free_journal_head(jh); in journal_release_journal_head()
3001 void jbd2_journal_put_journal_head(struct journal_head *jh) in jbd2_journal_put_journal_head() argument
3003 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_put_journal_head()
3006 J_ASSERT_JH(jh, jh->b_jcount > 0); in jbd2_journal_put_journal_head()
3007 --jh->b_jcount; in jbd2_journal_put_journal_head()
3008 if (!jh->b_jcount) { in jbd2_journal_put_journal_head()
3011 journal_release_journal_head(jh, bh->b_size); in jbd2_journal_put_journal_head()