/linux-6.12.1/fs/jbd2/ |
D | transaction.c | 33 static void __jbd2_journal_temp_unlink_buffer(struct journal_head *jh); 34 static void __jbd2_journal_unfile_buffer(struct journal_head *jh); 921 static void jbd2_freeze_jh_data(struct journal_head *jh) in jbd2_freeze_jh_data() argument 924 struct buffer_head *bh = jh2bh(jh); in jbd2_freeze_jh_data() 926 J_EXPECT_JH(jh, buffer_uptodate(bh), "Possible IO failure.\n"); in jbd2_freeze_jh_data() 929 jbd2_buffer_frozen_trigger(jh, source, jh->b_triggers); in jbd2_freeze_jh_data() 930 memcpy(jh->b_frozen_data, source, bh->b_size); in jbd2_freeze_jh_data() 937 jh->b_frozen_triggers = jh->b_triggers; in jbd2_freeze_jh_data() 951 do_get_write_access(handle_t *handle, struct journal_head *jh, in do_get_write_access() argument 963 jbd2_debug(5, "journal_head %p, force_copy %d\n", jh, force_copy); in do_get_write_access() [all …]
|
D | checkpoint.c | 30 static inline void __buffer_unlink(struct journal_head *jh) in __buffer_unlink() argument 32 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink() 34 jh->b_cpnext->b_cpprev = jh->b_cpprev; in __buffer_unlink() 35 jh->b_cpprev->b_cpnext = jh->b_cpnext; in __buffer_unlink() 36 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink() 37 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink() 38 if (transaction->t_checkpoint_list == jh) in __buffer_unlink() 156 struct journal_head *jh; in jbd2_log_do_checkpoint() local 198 jh = transaction->t_checkpoint_list; in jbd2_log_do_checkpoint() 199 bh = jh2bh(jh); in jbd2_log_do_checkpoint() [all …]
|
D | commit.c | 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() [all …]
|
D | journal.c | 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 [all …]
|
D | revoke.c | 423 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.12.1/fs/reiserfs/ |
D | journal.c | 711 struct reiserfs_jh *jh; in alloc_jh() local 713 jh = kmalloc(sizeof(*jh), GFP_NOFS); in alloc_jh() 714 if (jh) { in alloc_jh() 716 return jh; in alloc_jh() 728 struct reiserfs_jh *jh; in reiserfs_free_jh() local 730 jh = bh->b_private; in reiserfs_free_jh() 731 if (jh) { in reiserfs_free_jh() 733 jh->bh = NULL; in reiserfs_free_jh() 734 list_del_init(&jh->list); in reiserfs_free_jh() 735 kfree(jh); in reiserfs_free_jh() [all …]
|
D | inode.c | 3093 struct reiserfs_jh *jh = bh->b_private; in invalidate_folio_can_drop() local 3109 if (jh && (jl = jh->jl) in invalidate_folio_can_drop()
|
/linux-6.12.1/include/linux/ |
D | jbd2.h | 331 static inline struct buffer_head *jh2bh(struct journal_head *jh) in BUFFER_FNS() 333 return jh->b_bh; in BUFFER_FNS() 354 #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) argument 359 #define J_EXPECT_JH(jh, expr, why...) J_ASSERT_JH(jh, expr) argument 374 #define J_EXPECT_JH(jh, expr, why...) __journal_expect(expr, ## why) argument 1449 int jbd2_journal_try_remove_checkpoint(struct journal_head *jh); 1477 extern void jbd2_buffer_frozen_trigger(struct journal_head *jh, 1480 extern void jbd2_buffer_abort_trigger(struct journal_head *jh, 1591 void jbd2_journal_put_journal_head(struct journal_head *jh); 1851 #define JBUFFER_TRACE(jh, info) do {} while (0) argument
|
/linux-6.12.1/arch/s390/purgatory/ |
D | head.S | 51 jh 11f 65 jh 10b
|
/linux-6.12.1/fs/ocfs2/ |
D | suballoc.c | 1257 struct journal_head *jh; in ocfs2_test_bg_bit_allocatable() local 1263 jh = jbd2_journal_grab_journal_head(bg_bh); in ocfs2_test_bg_bit_allocatable() 1264 if (!jh) in ocfs2_test_bg_bit_allocatable() 1267 spin_lock(&jh->b_state_lock); in ocfs2_test_bg_bit_allocatable() 1268 bg = (struct ocfs2_group_desc *) jh->b_committed_data; in ocfs2_test_bg_bit_allocatable() 1273 spin_unlock(&jh->b_state_lock); in ocfs2_test_bg_bit_allocatable() 1274 jbd2_journal_put_journal_head(jh); in ocfs2_test_bg_bit_allocatable() 2450 struct journal_head *jh; in ocfs2_block_group_clear_bits() local 2469 jh = bh2jh(group_bh); in ocfs2_block_group_clear_bits() 2471 spin_lock(&jh->b_state_lock); in ocfs2_block_group_clear_bits() [all …]
|
/linux-6.12.1/fs/ubifs/ |
D | replay.c | 518 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud() local 523 if (list_is_last(&bud->list, &jh->buds_list)) in is_last_bud() 554 if (!list_is_last(&next->list, &jh->buds_list)) in is_last_bud()
|
/linux-6.12.1/fs/ext4/ |
D | super.c | 535 struct journal_head *jh; in ext4_journalled_writepage_callback() local 552 jh = bh2jh(bh); in ext4_journalled_writepage_callback() 554 (jh && (jh->b_transaction != transaction || in ext4_journalled_writepage_callback() 555 jh->b_next_transaction))) { in ext4_journalled_writepage_callback()
|