Home
last modified time | relevance | path

Searched refs:journal (Results 1 – 25 of 138) sorted by relevance

123456

/linux/drivers/md/dm-vdo/
A Drecovery-journal.c520 journal->last_write_acknowledged = journal->tail; in initialize_journal_state()
521 journal->block_map_head = journal->tail; in initialize_journal_state()
522 journal->slab_journal_head = journal->tail; in initialize_journal_state()
523 journal->block_map_reap_head = journal->tail; in initialize_journal_state()
524 journal->slab_journal_reap_head = journal->tail; in initialize_journal_state()
685 block->journal = journal; in initialize_recovery_block()
754 journal, NULL, &journal->flush_vio); in vdo_decode_recovery_journal()
974 set_journal_tail(journal, journal->tail + 1); in advance_tail()
1016 if ((journal->tail - get_recovery_journal_head(journal)) > journal->size) { in prepare_to_assign_entry()
1088 struct recovery_journal *journal = block->journal; in assign_entry() local
[all …]
A Dslab-depot.c80 return (journal->head != journal->unreapable); in is_reaping()
102 journal->unreapable = journal->head; in initialize_journal_state()
103 journal->reap_lock = get_lock(journal, journal->unreapable); in initialize_journal_state()
104 journal->next_commit = journal->tail; in initialize_journal_state()
105 journal->summarized = journal->last_summarized = journal->tail; in initialize_journal_state()
401 journal->head = journal->unreapable; in finish_reaping()
491 if (journal->reap_lock == &journal->locks[journal->size]) in reap_slab_journal()
666 journal->head = journal->tail; in reopen_slab_journal()
716 journal->next_commit = journal->tail; in complete_write()
942 return journal->tail - journal->head; in journal_length()
[all …]
A Drecovery-journal.h122 struct recovery_journal *journal; member
236 return vdo_compute_recovery_journal_block_number(journal->size, sequence); in vdo_get_recovery_journal_block_number()
251 return (((sequence / journal->size) & 0x7F) | 0x80); in vdo_compute_recovery_journal_check_byte()
261 void vdo_free_recovery_journal(struct recovery_journal *journal);
274 void vdo_open_recovery_journal(struct recovery_journal *journal,
283 vdo_record_recovery_journal(const struct recovery_journal *journal);
285 void vdo_add_recovery_journal_entry(struct recovery_journal *journal,
298 void vdo_release_journal_entry_lock(struct recovery_journal *journal,
301 void vdo_drain_recovery_journal(struct recovery_journal *journal,
305 void vdo_resume_recovery_journal(struct recovery_journal *journal,
[all …]
A Drepair.c798 struct recovery_journal *journal = vdo->recovery_journal; in add_slab_journal_entries() local
1187 if ((header->nonce != journal->nonce) || in is_valid_recovery_journal_block()
1188 (header->recovery_count != journal->recovery_count)) in is_valid_recovery_journal_block()
1233 repair->highest_tail = journal->tail; in find_recovery_journal_head_and_tail()
1234 for (i = 0; i < journal->size; i++) { in find_recovery_journal_head_and_tail()
1361 struct recovery_journal *journal, in extract_entries_from_block() argument
1380 get_sector(journal, repair->journal_data, sequence, i); in extract_entries_from_block()
1407 struct recovery_journal *journal = vdo->recovery_journal; in parse_journal_for_rebuild() local
1592 get_sector(journal, repair->journal_data, i, j); in parse_journal_for_recovery()
1700 physical_block_number_t pbn = journal->origin; in vdo_repair()
[all …]
/linux/fs/jbd2/
A Djournal.c823 if (journal->j_head == journal->j_last) in jbd2_journal_next_log_block()
824 journal->j_head = journal->j_first; in jbd2_journal_next_log_block()
840 if (journal->j_fc_off + journal->j_fc_first >= journal->j_fc_last) in jbd2_fc_get_buf()
928 err = journal->j_bmap(journal, &block); in jbd2_journal_bmap()
1187 s->journal = journal; in jbd2_seq_info_open()
1739 journal->j_head = journal->j_first; in journal_reset()
1742 journal->j_head = journal->j_first; in journal_reset()
1744 journal->j_tail = journal->j_head; in journal_reset()
1745 journal->j_free = journal->j_last - journal->j_first; in journal_reset()
2286 journal->j_fc_last = journal->j_last; in jbd2_journal_initialize_fast_commit()
[all …]
A Dcheckpoint.c50 __acquires(&journal->j_state_lock) in __jbd2_log_wait_for_space()
51 __releases(&journal->j_state_lock) in __jbd2_log_wait_for_space()
72 write_lock(&journal->j_state_lock); in __jbd2_log_wait_for_space()
77 spin_lock(&journal->j_list_lock); in __jbd2_log_wait_for_space()
91 jbd2_log_do_checkpoint(journal); in __jbd2_log_wait_for_space()
114 journal->j_devname); in __jbd2_log_wait_for_space()
141 journal->j_chkpt_bhs[i] = NULL; in __flush_batch()
179 spin_lock(&journal->j_list_lock); in jbd2_log_do_checkpoint()
322 if (is_journal_aborted(journal)) in jbd2_cleanup_journal_tail()
419 spin_lock(&journal->j_list_lock); in jbd2_journal_shrink_checkpoint_list()
[all …]
A Dcommit.c126 if (is_journal_aborted(journal)) in journal_submit_commit_record()
398 journal->j_tail_sequence, in jbd2_journal_commit_transaction()
399 journal->j_tail, 0); in jbd2_journal_commit_transaction()
438 journal->j_fc_off = 0; in jbd2_journal_commit_transaction()
767 freed += journal->j_last - journal->j_first; in jbd2_journal_commit_transaction()
782 (journal->j_fs_dev != journal->j_dev) && in jbd2_journal_commit_transaction()
1127 journal->j_commit_callback(journal, commit_transaction); in jbd2_journal_commit_transaction()
1129 journal->j_fc_cleanup_callback(journal, 1, commit_transaction->t_tid); in jbd2_journal_commit_transaction()
1133 journal->j_commit_sequence, journal->j_tail_sequence); in jbd2_journal_commit_transaction()
1148 wake_up(&journal->j_fc_wait); in jbd2_journal_commit_transaction()
[all …]
A Dtransaction.c276 if (jbd2_log_space_left(journal) < journal->j_max_transaction_buffers) { in add_transaction_credits()
371 (journal->j_errno != 0 && !(journal->j_flags & JBD2_ACK_ERR))) { in start_this_handle()
477 if (!journal) in jbd2__journal_start()
648 journal_t *journal; in jbd2_journal_extend() local
767 journal_t *journal; in jbd2__journal_restart() local
956 journal_t *journal; in do_get_write_access() local
1219 journal_t *journal; in jbd2_journal_get_write_access() local
1273 journal_t *journal; in jbd2_journal_get_create_access() local
1488 journal_t *journal; in jbd2_journal_dirty_metadata() local
1660 journal_t *journal; in jbd2_journal_forget() local
[all …]
A Drevoke.c151 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
166 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
276 journal->j_revoke = journal->j_revoke_table[1]; in jbd2_journal_init_revoke()
292 journal->j_revoke = NULL; in jbd2_journal_destroy_revoke()
330 journal_t *journal; in jbd2_journal_revoke() local
344 bdev = journal->j_fs_dev; in jbd2_journal_revoke()
517 if (journal->j_revoke == journal->j_revoke_table[0]) in jbd2_journal_switch_revoke_table()
518 journal->j_revoke = journal->j_revoke_table[1]; in jbd2_journal_switch_revoke_table()
520 journal->j_revoke = journal->j_revoke_table[0]; in jbd2_journal_switch_revoke_table()
545 revoke = journal->j_revoke == journal->j_revoke_table[0] ? in jbd2_journal_write_revoke_records()
[all …]
A Drecovery.c80 max = journal->j_total_len; in do_readahead()
96 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead()
152 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread()
235 var -= ((journal)->j_last - (journal)->j_first); \
259 err = journal->j_fc_replay_callback(journal, bh, pass, in fc_do_one_pass()
295 sb = journal->j_superblock; in jbd2_journal_recover()
327 journal->j_transaction_sequence, journal->j_head); in jbd2_journal_recover()
371 journal->j_head = journal->j_first; in jbd2_journal_skip_recovery()
384 journal->j_tail = 0; in jbd2_journal_skip_recovery()
673 (journal, blocknr, in do_one_pass()
[all …]
/linux/fs/reiserfs/
A Djournal.c2547 journal->j_first_unflushed_offset = journal->j_start; in journal_read()
2684 if (journal->j_max_batch != (journal->j_trans_max) * in check_advise_trans_params()
2866 journal->j_cnode_free_orig = journal->j_cnode_free_list; in journal_init()
3330 if (journal->j_len >= journal->j_trans_max) { in journal_mark_dirty()
3342 if (journal->j_len > journal->j_len_alloc) { in journal_mark_dirty()
3707 && journal->j_len_alloc < journal->j_max_batch in check_journal_end()
4090 ((journal->j_start + journal->j_len + in do_journal_end()
4251 (journal->j_start + journal->j_len + in do_journal_end()
4262 journal->j_current_jl->j_trans_id = journal->j_trans_id; in do_journal_end()
4321 if ((journal->j_start + journal->j_trans_max + 1) >= in do_journal_end()
[all …]
/linux/fs/bcachefs/
A Djournal_reclaim.h19 void bch2_journal_set_watermark(struct journal *);
20 void bch2_journal_space_available(struct journal *);
28 journal_seq_pin(struct journal *j, u64 seq) in journal_seq_pin()
35 void bch2_journal_reclaim_fast(struct journal *);
36 bool __bch2_journal_pin_put(struct journal *, u64);
37 void bch2_journal_pin_put(struct journal *, u64);
51 void bch2_journal_pin_copy(struct journal *,
66 void bch2_journal_do_discards(struct journal *);
67 int bch2_journal_reclaim(struct journal *);
69 void bch2_journal_reclaim_stop(struct journal *);
[all …]
A Djournal.h118 static inline void journal_wake(struct journal *j) in journal_wake()
266 bool bch2_journal_entry_close(struct journal *);
267 void bch2_journal_do_writes(struct journal *);
405 int bch2_journal_flush(struct journal *);
407 int bch2_journal_meta(struct journal *);
409 void bch2_journal_halt(struct journal *);
425 void bch2_journal_unblock(struct journal *);
426 void bch2_journal_block(struct journal *);
441 void bch2_fs_journal_stop(struct journal *);
446 void bch2_fs_journal_exit(struct journal *);
[all …]
A Djournal_sb.c22 struct bch_sb_field_journal *journal = field_to_type(f, journal); in bch2_sb_journal_validate() local
29 nr = bch2_nr_journal_buckets(journal); in bch2_sb_journal_validate()
38 b[i] = le64_to_cpu(journal->buckets[i]); in bch2_sb_journal_validate()
74 struct bch_sb_field_journal *journal = field_to_type(f, journal); in bch2_sb_journal_to_text() local
75 unsigned i, nr = bch2_nr_journal_buckets(journal); in bch2_sb_journal_to_text()
121 b[i].start = le64_to_cpu(journal->d[i].start); in bch2_sb_journal_v2_validate()
126 le64_to_cpu(journal->d[i].start), in bch2_sb_journal_v2_validate()
127 le64_to_cpu(journal->d[i].nr)); in bch2_sb_journal_v2_validate()
131 sum += le64_to_cpu(journal->d[i].nr); in bch2_sb_journal_v2_validate()
181 le64_to_cpu(journal->d[i].start), in bch2_sb_journal_v2_to_text()
[all …]
A Djournal_reclaim.c81 struct journal_device *ja = &ca->journal; in journal_dev_space_available()
145 if (!ca->journal.nr) in __journal_space_available()
184 struct journal_device *ja = &ca->journal; in bch2_journal_space_available()
277 struct journal_device *ja = &ca->journal; in bch2_journal_do_discards()
364 void bch2_journal_pin_drop(struct journal *j, in bch2_journal_pin_drop()
403 void bch2_journal_pin_copy(struct journal *j, in bch2_journal_pin_copy()
485 journal_get_next_pin(struct journal *j, in journal_get_next_pin()
594 struct journal_device *ja = &ca->journal; in journal_seq_to_flush()
717 int bch2_journal_reclaim(struct journal *j) in bch2_journal_reclaim()
724 struct journal *j = arg; in bch2_journal_reclaim_thread()
[all …]
A Djournal.c101 journal_seq_to_buf(struct journal *j, u64 seq) in journal_seq_to_buf()
304 void bch2_journal_halt(struct journal *j) in bch2_journal_halt()
478 struct journal *j = container_of(work, struct journal, write_work.work); in journal_write_work()
791 int bch2_journal_flush(struct journal *j) in bch2_journal_flush()
834 int bch2_journal_meta(struct journal *j) in bch2_journal_meta()
983 bch2_journal_block(&c->journal); in __bch2_set_nr_journal_buckets()
1017 spin_lock(&c->journal.lock); in __bch2_set_nr_journal_buckets()
1033 spin_unlock(&c->journal.lock); in __bch2_set_nr_journal_buckets()
1036 bch2_journal_unblock(&c->journal); in __bch2_set_nr_journal_buckets()
1143 if (ca->journal.nr) in bch2_fs_journal_alloc()
[all …]
/linux/drivers/md/bcache/
A Djournal.c298 struct journal *j = &c->journal; in bch_journal_mark()
436 spin_lock(&c->journal.lock); in btree_flush_write()
449 mask = c->journal.pin.mask; in btree_flush_write()
632 struct journal *j = &c->journal; in free_journal_buckets()
673 if (c->journal.blocks_free) in journal_reclaim()
749 __releases(c->journal.lock)
790 bio = &ca->journal.bio;
808 ca->journal.seq[ca->journal.cur_idx] = w->data->seq;
910 journal.work); in journal_write_work()
912 if (c->journal.cur->dirty) in journal_write_work()
[all …]
A Djournal.h104 struct journal { struct
163 (fifo_idx(&(c)->journal.pin, (l)) > fifo_idx(&(c)->journal.pin, (r)))
178 void bch_journal_next(struct journal *j);
186 void bch_journal_space_reserve(struct journal *j);
/linux/fs/ocfs2/
A Djournal.c296 journal = osb->journal; in ocfs2_commit_cache()
333 journal_t *journal = osb->journal->j_journal; in ocfs2_start_trans() local
375 struct ocfs2_journal *journal = osb->journal; in ocfs2_commit_trans() local
835 journal_t *journal = osb->journal->j_journal; in ocfs2_set_journal_params() local
865 osb->journal = journal; in ocfs2_journal_alloc()
899 struct ocfs2_journal *journal = osb->journal; in ocfs2_journal_init() local
1003 struct ocfs2_journal *journal = osb->journal; in ocfs2_journal_toggle_dirty() local
1045 journal = osb->journal; in ocfs2_journal_shutdown()
1046 if (!journal) in ocfs2_journal_shutdown()
1414 struct ocfs2_journal *journal = osb->journal; in ocfs2_complete_mount_recovery() local
[all …]
A Djournal.h82 ci->ci_last_trans = journal->j_trans_id; in ocfs2_set_ci_lock_trans()
94 struct ocfs2_journal *journal = in ocfs2_ci_fully_checkpointed() local
95 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed()
98 ret = time_after(journal->j_trans_id, ci->ci_last_trans); in ocfs2_ci_fully_checkpointed()
110 struct ocfs2_journal *journal = in ocfs2_ci_is_new() local
111 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new()
114 ret = !(time_after(journal->j_trans_id, ci->ci_created_trans)); in ocfs2_ci_is_new()
137 ci->ci_created_trans = osb->journal->j_trans_id; in ocfs2_ci_set_new()
175 int ocfs2_journal_wipe(struct ocfs2_journal *journal,
207 wait_event(osb->journal->j_checkpointed, in ocfs2_checkpoint_inode()
[all …]
/linux/include/linux/
A Djbd2.h1692 return journal->j_flags & JBD2_ABORT; in is_journal_aborted()
1754 journal->j_chksum_driver == NULL); in jbd2_journal_has_csum_v2or3()
1756 return journal->j_chksum_driver != NULL; in jbd2_journal_has_csum_v2or3()
1772 long free = journal->j_free - 32; in jbd2_log_space_left()
1775 free -= atomic_read(&journal-> in jbd2_log_space_left()
1822 read_lock(&journal->j_state_lock); in jbd2_get_latest_transaction()
1823 tid = journal->j_commit_request; in jbd2_get_latest_transaction()
1824 if (journal->j_running_transaction) in jbd2_get_latest_transaction()
1826 read_unlock(&journal->j_state_lock); in jbd2_get_latest_transaction()
1832 journal_t *journal; in jbd2_handle_buffer_credits() local
[all …]
/linux/include/trace/events/
A Djbd2.h16 TP_PROTO(journal_t *journal, int result),
18 TP_ARGS(journal, result),
38 TP_ARGS(journal, commit_transaction),
61 TP_ARGS(journal, commit_transaction)
68 TP_ARGS(journal, commit_transaction)
75 TP_ARGS(journal, commit_transaction)
82 TP_ARGS(journal, commit_transaction)
89 TP_ARGS(journal, commit_transaction)
95 TP_ARGS(journal, commit_transaction),
360 TP_ARGS(journal, write_flags),
[all …]
/linux/Documentation/filesystems/ext4/
A Djournal.rst26 option to control journal behavior. If ``data=journal``, all data and
43 journal inode are replicated in the ext4 superblock. The journal itself
59 Generally speaking, the journal has this format:
135 The journal block type can be any one of:
178 - Static information describing the journal.
190 - Total number of blocks in this journal.
236 - Number of file systems sharing this journal.
266 up-to-date when the journal is empty.
314 - This journal uses v2 of the checksum on-disk format. Each journal
317 journal. (JBD2_FEATURE_INCOMPAT_CSUM_V2)
[all …]
/linux/Documentation/admin-guide/device-mapper/
A Ddm-integrity.rst13 writes sector data and integrity tags into a journal, commits the journal
75 D - direct writes (without journal)
119 The journal watermark in percents. When the size of the journal
158 situation, you can encrypt the journal.
197 copy sectors from one journal section to another journal section
243 * the number of journal sections
254 - journal area contains the bitmap of dirty
258 * journal
263 - every journal entry contains:
276 numbers in the journal.
[all …]
/linux/Documentation/filesystems/
A Djournalling.rst12 how you decide to allocate the physical media on which the journal
15 for journal stored on a raw device (in a continuous range of blocks). A
21 journal file. The journalling layer expects the space for the journal
23 When loading the journal you must call jbd2_journal_load() to process
24 journal contents. If the client file system detects the journal contents
26 may call jbd2_journal_wipe() to clear the journal contents before
31 transactions in the journal and similarly jbd2_journal_load() will
70 jbd2_journal_destroy() to clean up your in-core journal object.
72 Unfortunately there a couple of ways the journal layer can cause a
107 journal commit callback for this purpose.
[all …]

Completed in 106 milliseconds

123456