Home
last modified time | relevance | path

Searched refs:jh (Results 1 – 12 of 12) sorted by relevance

/linux-6.1.9/fs/jbd2/
Dtransaction.c33 static void __jbd2_journal_temp_unlink_buffer(struct journal_head *jh);
34 static void __jbd2_journal_unfile_buffer(struct journal_head *jh);
936 static void jbd2_freeze_jh_data(struct journal_head *jh) in jbd2_freeze_jh_data() argument
941 struct buffer_head *bh = jh2bh(jh); in jbd2_freeze_jh_data()
943 J_EXPECT_JH(jh, buffer_uptodate(bh), "Possible IO failure.\n"); in jbd2_freeze_jh_data()
948 jbd2_buffer_frozen_trigger(jh, source + offset, jh->b_triggers); in jbd2_freeze_jh_data()
949 memcpy(jh->b_frozen_data, source + offset, bh->b_size); in jbd2_freeze_jh_data()
956 jh->b_frozen_triggers = jh->b_triggers; in jbd2_freeze_jh_data()
970 do_get_write_access(handle_t *handle, struct journal_head *jh, in do_get_write_access() argument
982 jbd2_debug(5, "journal_head %p, force_copy %d\n", jh, force_copy); in do_get_write_access()
[all …]
Dcheckpoint.c30 static inline void __buffer_unlink_first(struct journal_head *jh) in __buffer_unlink_first() argument
32 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink_first()
34 jh->b_cpnext->b_cpprev = jh->b_cpprev; in __buffer_unlink_first()
35 jh->b_cpprev->b_cpnext = jh->b_cpnext; in __buffer_unlink_first()
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()
48 static inline void __buffer_unlink(struct journal_head *jh) in __buffer_unlink() argument
50 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink()
52 __buffer_unlink_first(jh); in __buffer_unlink()
[all …]
Dcommit.c385 struct journal_head *jh; in jbd2_journal_commit_transaction() local
514 jh = commit_transaction->t_reserved_list; in jbd2_journal_commit_transaction()
515 JBUFFER_TRACE(jh, "reserved, unused: refile"); in jbd2_journal_commit_transaction()
520 if (jh->b_committed_data) { in jbd2_journal_commit_transaction()
521 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_commit_transaction()
523 spin_lock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
524 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
525 jh->b_committed_data = NULL; in jbd2_journal_commit_transaction()
526 spin_unlock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
528 jbd2_journal_refile_buffer(journal, jh); in jbd2_journal_commit_transaction()
[all …]
Djournal.c2876 static void journal_free_journal_head(struct journal_head *jh) in journal_free_journal_head() argument
2880 memset(jh, JBD2_POISON_FREE, sizeof(*jh)); in journal_free_journal_head()
2882 kmem_cache_free(jbd2_journal_head_cache, jh); in journal_free_journal_head()
2928 struct journal_head *jh; in jbd2_journal_add_journal_head() local
2937 jh = bh2jh(bh); in jbd2_journal_add_journal_head()
2948 jh = new_jh; in jbd2_journal_add_journal_head()
2951 bh->b_private = jh; in jbd2_journal_add_journal_head()
2952 jh->b_bh = bh; in jbd2_journal_add_journal_head()
2956 jh->b_jcount++; in jbd2_journal_add_journal_head()
2969 struct journal_head *jh = NULL; in jbd2_journal_grab_journal_head() local
[all …]
Drevoke.c423 int jbd2_journal_cancel_revoke(handle_t *handle, struct journal_head *jh) in jbd2_journal_cancel_revoke() argument
429 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_cancel_revoke()
431 jbd2_debug(4, "journal_head %p, cancelling revoke\n", jh); in jbd2_journal_cancel_revoke()
460 J_ASSERT_JH(jh, record == NULL); in jbd2_journal_cancel_revoke()
/linux-6.1.9/fs/reiserfs/
Djournal.c712 struct reiserfs_jh *jh; in alloc_jh() local
714 jh = kmalloc(sizeof(*jh), GFP_NOFS); in alloc_jh()
715 if (jh) { in alloc_jh()
717 return jh; in alloc_jh()
729 struct reiserfs_jh *jh; in reiserfs_free_jh() local
731 jh = bh->b_private; in reiserfs_free_jh()
732 if (jh) { in reiserfs_free_jh()
734 jh->bh = NULL; in reiserfs_free_jh()
735 list_del_init(&jh->list); in reiserfs_free_jh()
736 kfree(jh); in reiserfs_free_jh()
[all …]
Dinode.c3103 struct reiserfs_jh *jh = bh->b_private; in invalidate_folio_can_drop() local
3119 if (jh && (jl = jh->jl) in invalidate_folio_can_drop()
/linux-6.1.9/include/linux/
Djbd2.h340 static inline struct buffer_head *jh2bh(struct journal_head *jh) in BUFFER_FNS()
342 return jh->b_bh; in BUFFER_FNS()
363 #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) argument
368 #define J_EXPECT_JH(jh, expr, why...) J_ASSERT_JH(jh, expr) argument
383 #define J_EXPECT_JH(jh, expr, why...) __journal_expect(expr, ## why) argument
1471 extern void jbd2_buffer_frozen_trigger(struct journal_head *jh,
1474 extern void jbd2_buffer_abort_trigger(struct journal_head *jh,
1587 void jbd2_journal_put_journal_head(struct journal_head *jh);
1827 #define JBUFFER_TRACE(jh, info) do {} while (0) argument
/linux-6.1.9/arch/s390/purgatory/
Dhead.S51 jh 11f
65 jh 10b
/linux-6.1.9/fs/ocfs2/
Dsuballoc.c1253 struct journal_head *jh; in ocfs2_test_bg_bit_allocatable() local
1259 jh = jbd2_journal_grab_journal_head(bg_bh); in ocfs2_test_bg_bit_allocatable()
1260 if (!jh) in ocfs2_test_bg_bit_allocatable()
1263 spin_lock(&jh->b_state_lock); in ocfs2_test_bg_bit_allocatable()
1264 bg = (struct ocfs2_group_desc *) jh->b_committed_data; in ocfs2_test_bg_bit_allocatable()
1269 spin_unlock(&jh->b_state_lock); in ocfs2_test_bg_bit_allocatable()
1270 jbd2_journal_put_journal_head(jh); in ocfs2_test_bg_bit_allocatable()
2391 struct journal_head *jh; in ocfs2_block_group_clear_bits() local
2410 jh = bh2jh(group_bh); in ocfs2_block_group_clear_bits()
2412 spin_lock(&jh->b_state_lock); in ocfs2_block_group_clear_bits()
[all …]
/linux-6.1.9/fs/ubifs/
Dreplay.c516 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud() local
521 if (list_is_last(&bud->list, &jh->buds_list)) in is_last_bud()
552 if (!list_is_last(&next->list, &jh->buds_list)) in is_last_bud()
/linux-6.1.9/fs/ext4/
Dsuper.c491 struct journal_head *jh; in ext4_journalled_writepage_callback() local
508 jh = bh2jh(bh); in ext4_journalled_writepage_callback()
510 (jh && (jh->b_transaction != transaction || in ext4_journalled_writepage_callback()
511 jh->b_next_transaction))) { in ext4_journalled_writepage_callback()