Lines Matching refs:jh

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()
746 struct reiserfs_jh *jh; in __add_jh() local
754 jh = bh->b_private; in __add_jh()
755 list_del_init(&jh->list); in __add_jh()
759 jh = alloc_jh(); in __add_jh()
766 jh->bh = bh; in __add_jh()
767 bh->b_private = jh; in __add_jh()
769 jh->jl = j->j_current_jl; in __add_jh()
771 list_add_tail(&jh->list, &jh->jl->j_tail_bh_list); in __add_jh()
773 list_add_tail(&jh->list, &jh->jl->j_bh_list); in __add_jh()
795 struct reiserfs_jh *jh; in write_ordered_buffers() local
804 jh = JH_ENTRY(list->next); in write_ordered_buffers()
805 bh = jh->bh; in write_ordered_buffers()
809 list_move(&jh->list, &tmp); in write_ordered_buffers()
830 list_move(&jh->list, &tmp); in write_ordered_buffers()
846 jh = JH_ENTRY(tmp.prev); in write_ordered_buffers()
847 bh = jh->bh; in write_ordered_buffers()
1238 struct reiserfs_journal_header *jh; in _update_journal_header_block() local
1260 jh = (struct reiserfs_journal_header *)(journal->j_header_bh-> in _update_journal_header_block()
1262 jh->j_last_flush_trans_id = cpu_to_le32(trans_id); in _update_journal_header_block()
1263 jh->j_first_unflushed_offset = cpu_to_le32(offset); in _update_journal_header_block()
1264 jh->j_mount_id = cpu_to_le32(journal->j_mount_id); in _update_journal_header_block()
2381 struct reiserfs_journal_header *jh; in journal_read() local
2403 jh = (struct reiserfs_journal_header *)(journal->j_header_bh->b_data); in journal_read()
2404 if (le32_to_cpu(jh->j_first_unflushed_offset) < in journal_read()
2406 && le32_to_cpu(jh->j_last_flush_trans_id) > 0) { in journal_read()
2409 le32_to_cpu(jh->j_first_unflushed_offset); in journal_read()
2410 oldest_trans_id = le32_to_cpu(jh->j_last_flush_trans_id) + 1; in journal_read()
2411 newest_mount_id = le32_to_cpu(jh->j_mount_id); in journal_read()
2415 "%lu", le32_to_cpu(jh->j_first_unflushed_offset), in journal_read()
2416 le32_to_cpu(jh->j_last_flush_trans_id)); in journal_read()
2427 le32_to_cpu(jh->j_first_unflushed_offset)); in journal_read()
2533 journal->j_start = le32_to_cpu(jh->j_first_unflushed_offset); in journal_read()
2535 le32_to_cpu(jh->j_last_flush_trans_id) + 1; in journal_read()
2540 le32_to_cpu(jh->j_last_flush_trans_id); in journal_read()
2541 journal->j_mount_id = le32_to_cpu(jh->j_mount_id) + 1; in journal_read()
2717 struct reiserfs_journal_header *jh; in journal_init() local
2796 jh = (struct reiserfs_journal_header *)(bhjh->b_data); in journal_init()
2800 && (le32_to_cpu(jh->jh_journal.jp_journal_magic) != in journal_init()
2805 jh->jh_journal.jp_journal_magic, in journal_init()
2812 journal->j_trans_max = le32_to_cpu(jh->jh_journal.jp_journal_trans_max); in journal_init()
2813 journal->j_max_batch = le32_to_cpu(jh->jh_journal.jp_journal_max_batch); in journal_init()
2815 le32_to_cpu(jh->jh_journal.jp_journal_max_commit_age); in journal_init()