Home
last modified time | relevance | path

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

/linux-4.1.27/fs/jbd/
Dtransaction.c30 static void __journal_temp_unlink_buffer(struct journal_head *jh);
519 do_get_write_access(handle_t *handle, struct journal_head *jh, in do_get_write_access() argument
535 jbd_debug(5, "journal_head %p, force_copy %d\n", jh, force_copy); in do_get_write_access()
537 JBUFFER_TRACE(jh, "entry"); in do_get_write_access()
539 bh = jh2bh(jh); in do_get_write_access()
564 if (jh->b_transaction) { in do_get_write_access()
565 J_ASSERT_JH(jh, in do_get_write_access()
566 jh->b_transaction == transaction || in do_get_write_access()
567 jh->b_transaction == in do_get_write_access()
569 if (jh->b_next_transaction) in do_get_write_access()
[all …]
Dcheckpoint.c33 static inline void __buffer_unlink_first(struct journal_head *jh) in __buffer_unlink_first() argument
35 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink_first()
37 jh->b_cpnext->b_cpprev = jh->b_cpprev; in __buffer_unlink_first()
38 jh->b_cpprev->b_cpnext = jh->b_cpnext; in __buffer_unlink_first()
39 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink_first()
40 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink_first()
41 if (transaction->t_checkpoint_list == jh) in __buffer_unlink_first()
51 static inline void __buffer_unlink(struct journal_head *jh) in __buffer_unlink() argument
53 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink()
55 __buffer_unlink_first(jh); in __buffer_unlink()
[all …]
Dcommit.c186 struct journal_head *jh; in journal_submit_data_buffers() local
206 jh = commit_transaction->t_sync_datalist; in journal_submit_data_buffers()
207 bh = jh2bh(jh); in journal_submit_data_buffers()
238 if (!buffer_jbd(bh) || bh2jh(bh) != jh in journal_submit_data_buffers()
239 || jh->b_transaction != commit_transaction in journal_submit_data_buffers()
240 || jh->b_jlist != BJ_SyncData) { in journal_submit_data_buffers()
251 __journal_file_buffer(jh, commit_transaction, in journal_submit_data_buffers()
263 __journal_file_buffer(jh, commit_transaction, in journal_submit_data_buffers()
271 __journal_unfile_buffer(jh); in journal_submit_data_buffers()
299 struct journal_head *jh, *new_jh, *descriptor; in journal_commit_transaction() local
[all …]
Djournal.c1886 static void journal_free_journal_head(struct journal_head *jh) in journal_free_journal_head() argument
1890 memset(jh, JBD_POISON_FREE, sizeof(*jh)); in journal_free_journal_head()
1892 kmem_cache_free(journal_head_cache, jh); in journal_free_journal_head()
1938 struct journal_head *jh; in journal_add_journal_head() local
1947 jh = bh2jh(bh); in journal_add_journal_head()
1958 jh = new_jh; in journal_add_journal_head()
1961 bh->b_private = jh; in journal_add_journal_head()
1962 jh->b_bh = bh; in journal_add_journal_head()
1966 jh->b_jcount++; in journal_add_journal_head()
1979 struct journal_head *jh = NULL; in journal_grab_journal_head() local
[all …]
Drevoke.c423 int journal_cancel_revoke(handle_t *handle, struct journal_head *jh) in journal_cancel_revoke() argument
429 struct buffer_head *bh = jh2bh(jh); in journal_cancel_revoke()
431 jbd_debug(4, "journal_head %p, cancelling revoke\n", jh); in journal_cancel_revoke()
460 J_ASSERT_JH(jh, record == NULL); in journal_cancel_revoke()
/linux-4.1.27/fs/jbd2/
Dtransaction.c35 static void __jbd2_journal_temp_unlink_buffer(struct journal_head *jh);
36 static void __jbd2_journal_unfile_buffer(struct journal_head *jh);
775 do_get_write_access(handle_t *handle, struct journal_head *jh, in do_get_write_access() argument
790 jbd_debug(5, "journal_head %p, force_copy %d\n", jh, force_copy); in do_get_write_access()
792 JBUFFER_TRACE(jh, "entry"); in do_get_write_access()
794 bh = jh2bh(jh); in do_get_write_access()
826 if (jh->b_transaction) { in do_get_write_access()
827 J_ASSERT_JH(jh, in do_get_write_access()
828 jh->b_transaction == transaction || in do_get_write_access()
829 jh->b_transaction == in do_get_write_access()
[all …]
Dcheckpoint.c33 static inline void __buffer_unlink_first(struct journal_head *jh) in __buffer_unlink_first() argument
35 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink_first()
37 jh->b_cpnext->b_cpprev = jh->b_cpprev; in __buffer_unlink_first()
38 jh->b_cpprev->b_cpnext = jh->b_cpnext; in __buffer_unlink_first()
39 if (transaction->t_checkpoint_list == jh) { in __buffer_unlink_first()
40 transaction->t_checkpoint_list = jh->b_cpnext; in __buffer_unlink_first()
41 if (transaction->t_checkpoint_list == jh) in __buffer_unlink_first()
51 static inline void __buffer_unlink(struct journal_head *jh) in __buffer_unlink() argument
53 transaction_t *transaction = jh->b_cp_transaction; in __buffer_unlink()
55 __buffer_unlink_first(jh); in __buffer_unlink()
[all …]
Dcommit.c374 struct journal_head *jh; in jbd2_journal_commit_transaction() local
490 jh = commit_transaction->t_reserved_list; in jbd2_journal_commit_transaction()
491 JBUFFER_TRACE(jh, "reserved, unused: refile"); in jbd2_journal_commit_transaction()
496 if (jh->b_committed_data) { in jbd2_journal_commit_transaction()
497 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_commit_transaction()
500 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
501 jh->b_committed_data = NULL; in jbd2_journal_commit_transaction()
504 jbd2_journal_refile_buffer(journal, jh); in jbd2_journal_commit_transaction()
591 jh = commit_transaction->t_buffers; in jbd2_journal_commit_transaction()
597 clear_buffer_jbddirty(jh2bh(jh)); in jbd2_journal_commit_transaction()
[all …]
Djournal.c2417 static void journal_free_journal_head(struct journal_head *jh) in journal_free_journal_head() argument
2421 memset(jh, JBD2_POISON_FREE, sizeof(*jh)); in journal_free_journal_head()
2423 kmem_cache_free(jbd2_journal_head_cache, jh); in journal_free_journal_head()
2469 struct journal_head *jh; in jbd2_journal_add_journal_head() local
2478 jh = bh2jh(bh); in jbd2_journal_add_journal_head()
2489 jh = new_jh; in jbd2_journal_add_journal_head()
2492 bh->b_private = jh; in jbd2_journal_add_journal_head()
2493 jh->b_bh = bh; in jbd2_journal_add_journal_head()
2497 jh->b_jcount++; in jbd2_journal_add_journal_head()
2510 struct journal_head *jh = NULL; in jbd2_journal_grab_journal_head() local
[all …]
Drevoke.c420 int jbd2_journal_cancel_revoke(handle_t *handle, struct journal_head *jh) in jbd2_journal_cancel_revoke() argument
426 struct buffer_head *bh = jh2bh(jh); in jbd2_journal_cancel_revoke()
428 jbd_debug(4, "journal_head %p, cancelling revoke\n", jh); in jbd2_journal_cancel_revoke()
457 J_ASSERT_JH(jh, record == NULL); in jbd2_journal_cancel_revoke()
/linux-4.1.27/fs/logfs/
Djournal.c142 struct logfs_journal_header *jh = from; in unpack() local
147 inlen = be16_to_cpu(jh->h_len); in unpack()
148 outlen = be16_to_cpu(jh->h_datalen); in unpack()
150 if (jh->h_compr == COMPR_NONE) in unpack()
160 struct logfs_journal_header *jh) in __read_je_header() argument
169 err = wbuf_read(sb, ofs, sizeof(*jh), jh); in __read_je_header()
172 type = be16_to_cpu(jh->h_type); in __read_je_header()
173 len = be16_to_cpu(jh->h_len); in __read_je_header()
174 datalen = be16_to_cpu(jh->h_datalen); in __read_je_header()
185 struct logfs_journal_header *jh) in __read_je_payload() argument
[all …]
/linux-4.1.27/fs/reiserfs/
Djournal.c716 struct reiserfs_jh *jh; in alloc_jh() local
718 jh = kmalloc(sizeof(*jh), GFP_NOFS); in alloc_jh()
719 if (jh) { in alloc_jh()
721 return jh; in alloc_jh()
733 struct reiserfs_jh *jh; in reiserfs_free_jh() local
735 jh = bh->b_private; in reiserfs_free_jh()
736 if (jh) { in reiserfs_free_jh()
738 jh->bh = NULL; in reiserfs_free_jh()
739 list_del_init(&jh->list); in reiserfs_free_jh()
740 kfree(jh); in reiserfs_free_jh()
[all …]
Dinode.c3146 struct reiserfs_jh *jh = bh->b_private; in invalidatepage_can_drop() local
3162 if (jh && (jl = jh->jl) in invalidatepage_can_drop()
/linux-4.1.27/include/linux/
Djbd_common.h6 static inline struct buffer_head *jh2bh(struct journal_head *jh) in jh2bh() argument
8 return jh->b_bh; in jh2bh()
Djbd.h273 #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) argument
278 #define J_EXPECT_JH(jh, expr, why...) J_ASSERT_JH(jh, expr) argument
292 #define J_EXPECT_JH(jh, expr, why...) __journal_expect(expr, ## why)
902 void journal_put_journal_head(struct journal_head *jh);
1043 #define JBUFFER_TRACE(jh, info) do {} while (0) argument
Djbd2.h344 #define J_ASSERT_JH(jh, expr) J_ASSERT(expr) argument
349 #define J_EXPECT_JH(jh, expr, why...) J_ASSERT_JH(jh, expr) argument
364 #define J_EXPECT_JH(jh, expr, why...) __journal_expect(expr, ## why)
1075 extern void jbd2_buffer_frozen_trigger(struct journal_head *jh,
1078 extern void jbd2_buffer_abort_trigger(struct journal_head *jh,
1183 void jbd2_journal_put_journal_head(struct journal_head *jh);
1405 #define JBUFFER_TRACE(jh, info) do {} while (0) argument
/linux-4.1.27/fs/ext3/
Dballoc.c716 struct journal_head *jh = bh2jh(bh); in ext3_test_allocatable() local
722 if (!jh->b_committed_data) in ext3_test_allocatable()
725 ret = !ext3_test_bit(nr, jh->b_committed_data); in ext3_test_allocatable()
745 struct journal_head *jh = bh2jh(bh); in bitmap_search_next_usable_block() local
754 if (jh->b_committed_data) in bitmap_search_next_usable_block()
755 start = ext3_find_next_zero_bit(jh->b_committed_data, in bitmap_search_next_usable_block()
835 struct journal_head *jh = bh2jh(bh); in claim_block() local
841 if (jh->b_committed_data && ext3_test_bit(block,jh->b_committed_data)) { in claim_block()
/linux-4.1.27/arch/s390/net/
Dbpf_jit.S54 jh sk_load_##NAME##_slow; \
/linux-4.1.27/fs/ubifs/
Dreplay.c486 struct ubifs_jhead *jh = &c->jheads[bud->jhead]; in is_last_bud() local
491 if (list_is_last(&bud->list, &jh->buds_list)) in is_last_bud()
522 if (!list_is_last(&next->list, &jh->buds_list)) in is_last_bud()
/linux-4.1.27/arch/s390/kernel/
Dentry.S95 jh .+42
857 jh 0f
864 jh 0f
874 jh 0f
881 jh 0f