Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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);
910 static void jbd2_freeze_jh_data(struct journal_head *jh) in jbd2_freeze_jh_data() argument
915 struct buffer_head *bh = jh2bh(jh); in jbd2_freeze_jh_data()
917 J_EXPECT_JH(jh, buffer_uptodate(bh), "Possible IO failure.\n"); in jbd2_freeze_jh_data()
922 jbd2_buffer_frozen_trigger(jh, source + offset, jh->b_triggers); in jbd2_freeze_jh_data()
923 memcpy(jh->b_frozen_data, source + offset, bh->b_size); in jbd2_freeze_jh_data()
930 jh->b_frozen_triggers = jh->b_triggers; in jbd2_freeze_jh_data()
944 do_get_write_access(handle_t *handle, struct journal_head *jh, in do_get_write_access() argument
956 jbd_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
526 jh = commit_transaction->t_reserved_list; in jbd2_journal_commit_transaction()
527 JBUFFER_TRACE(jh, "reserved, unused: refile"); in jbd2_journal_commit_transaction()
532 if (jh->b_committed_data) { in jbd2_journal_commit_transaction()
533 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_commit_transaction()
535 spin_lock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
536 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
537 jh->b_committed_data = NULL; in jbd2_journal_commit_transaction()
538 spin_unlock(&jh->b_state_lock); in jbd2_journal_commit_transaction()
540 jbd2_journal_refile_buffer(journal, jh); in jbd2_journal_commit_transaction()
[all …]
Djournal.c2769 static void journal_free_journal_head(struct journal_head *jh) in journal_free_journal_head() argument
2773 memset(jh, JBD2_POISON_FREE, sizeof(*jh)); in journal_free_journal_head()
2775 kmem_cache_free(jbd2_journal_head_cache, jh); in journal_free_journal_head()
2821 struct journal_head *jh; in jbd2_journal_add_journal_head() local
2830 jh = bh2jh(bh); in jbd2_journal_add_journal_head()
2841 jh = new_jh; in jbd2_journal_add_journal_head()
2844 bh->b_private = jh; in jbd2_journal_add_journal_head()
2845 jh->b_bh = bh; in jbd2_journal_add_journal_head()
2849 jh->b_jcount++; in jbd2_journal_add_journal_head()
2862 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 jbd_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()
/kernel/linux/linux-5.10/fs/reiserfs/
Djournal.c714 struct reiserfs_jh *jh; in alloc_jh() local
716 jh = kmalloc(sizeof(*jh), GFP_NOFS); in alloc_jh()
717 if (jh) { in alloc_jh()
719 return jh; in alloc_jh()
731 struct reiserfs_jh *jh; in reiserfs_free_jh() local
733 jh = bh->b_private; in reiserfs_free_jh()
734 if (jh) { in reiserfs_free_jh()
736 jh->bh = NULL; in reiserfs_free_jh()
737 list_del_init(&jh->list); in reiserfs_free_jh()
738 kfree(jh); in reiserfs_free_jh()
[all …]
Dinode.c3123 struct reiserfs_jh *jh = bh->b_private; in invalidatepage_can_drop() local
3139 if (jh && (jl = jh->jl) in invalidatepage_can_drop()
/kernel/linux/linux-5.10/include/linux/
Djbd2.h341 static inline struct buffer_head *jh2bh(struct journal_head *jh) in BUFFER_FNS()
343 return jh->b_bh; in BUFFER_FNS()
364 #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) argument
369 #define J_EXPECT_JH(jh, expr, why...) J_ASSERT_JH(jh, expr) argument
384 #define J_EXPECT_JH(jh, expr, why...) __journal_expect(expr, ## why) argument
1463 extern void jbd2_buffer_frozen_trigger(struct journal_head *jh,
1466 extern void jbd2_buffer_abort_trigger(struct journal_head *jh,
1580 void jbd2_journal_put_journal_head(struct journal_head *jh);
1816 #define JBUFFER_TRACE(jh, info) do {} while (0) argument
/kernel/linux/linux-5.10/arch/s390/purgatory/
Dhead.S48 jh 11f
62 jh 10b
/kernel/linux/linux-5.10/fs/ocfs2/
Dsuballoc.c1255 struct journal_head *jh; in ocfs2_test_bg_bit_allocatable() local
1261 jh = jbd2_journal_grab_journal_head(bg_bh); in ocfs2_test_bg_bit_allocatable()
1262 if (!jh) in ocfs2_test_bg_bit_allocatable()
1265 spin_lock(&jh->b_state_lock); in ocfs2_test_bg_bit_allocatable()
1266 bg = (struct ocfs2_group_desc *) jh->b_committed_data; in ocfs2_test_bg_bit_allocatable()
1271 spin_unlock(&jh->b_state_lock); in ocfs2_test_bg_bit_allocatable()
1272 jbd2_journal_put_journal_head(jh); in ocfs2_test_bg_bit_allocatable()
2393 struct journal_head *jh; in ocfs2_block_group_clear_bits() local
2412 jh = bh2jh(group_bh); in ocfs2_block_group_clear_bits()
2414 spin_lock(&jh->b_state_lock); in ocfs2_block_group_clear_bits()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/ext4/
Dsuper.c481 struct journal_head *jh; in ext4_journalled_writepage_callback() local
498 jh = bh2jh(bh); in ext4_journalled_writepage_callback()
500 (jh && (jh->b_transaction != transaction || in ext4_journalled_writepage_callback()
501 jh->b_next_transaction))) { in ext4_journalled_writepage_callback()
/kernel/linux/linux-5.10/arch/s390/kernel/
Dentry.S1289 jh 1f