/linux/fs/jbd2/ |
A D | journal.c | 662 if (journal->j_fs_dev != journal->j_dev) { in jbd2_trans_will_send_data_barrier() 772 journal->j_fc_cleanup_callback(journal, 0); in __jbd2_fc_end_commit() 864 if (journal->j_head == journal->j_last) in jbd2_journal_next_log_block() 865 journal->j_head = journal->j_first; in jbd2_journal_next_log_block() 881 if (journal->j_fc_off + journal->j_fc_first < journal->j_fc_last) { in jbd2_fc_get_buf() 1228 s->journal = journal; in jbd2_seq_info_open() 1548 journal->j_head = journal->j_first; in journal_reset() 1549 journal->j_tail = journal->j_first; in journal_reset() 1550 journal->j_free = journal->j_last - journal->j_first; in journal_reset() 2285 journal->j_fc_last = journal->j_last; in jbd2_journal_initialize_fast_commit() [all …]
|
A D | checkpoint.c | 101 __acquires(&journal->j_state_lock) in __jbd2_log_wait_for_space() 102 __releases(&journal->j_state_lock) in __jbd2_log_wait_for_space() 123 write_lock(&journal->j_state_lock); in __jbd2_log_wait_for_space() 128 spin_lock(&journal->j_list_lock); in __jbd2_log_wait_for_space() 139 jbd2_log_do_checkpoint(journal); in __jbd2_log_wait_for_space() 159 journal->j_devname); in __jbd2_log_wait_for_space() 223 spin_lock(&journal->j_list_lock); in jbd2_log_do_checkpoint() 387 if (is_journal_aborted(journal)) in jbd2_cleanup_journal_tail() 516 spin_lock(&journal->j_list_lock); in jbd2_journal_shrink_checkpoint_list() 678 journal_t *journal; in __jbd2_journal_remove_checkpoint() local [all …]
|
A D | commit.c | 128 if (is_journal_aborted(journal)) in journal_submit_commit_record() 431 journal->j_tail_sequence, in jbd2_journal_commit_transaction() 432 journal->j_tail, in jbd2_journal_commit_transaction() 472 journal->j_fc_off = 0; in jbd2_journal_commit_transaction() 811 freed += journal->j_last - journal->j_first; in jbd2_journal_commit_transaction() 826 (journal->j_fs_dev != journal->j_dev) && in jbd2_journal_commit_transaction() 1171 journal->j_commit_callback(journal, commit_transaction); in jbd2_journal_commit_transaction() 1173 journal->j_fc_cleanup_callback(journal, 1); in jbd2_journal_commit_transaction() 1177 journal->j_commit_sequence, journal->j_tail_sequence); in jbd2_journal_commit_transaction() 1193 wake_up(&journal->j_fc_wait); in jbd2_journal_commit_transaction() [all …]
|
A D | transaction.c | 296 if (jbd2_log_space_left(journal) < journal->j_max_transaction_buffers) { in add_transaction_credits() 391 (journal->j_errno != 0 && !(journal->j_flags & JBD2_ACK_ERR))) { in start_this_handle() 497 if (!journal) in jbd2__journal_start() 668 journal_t *journal; in jbd2_journal_extend() local 790 journal_t *journal; in jbd2__journal_restart() local 966 journal_t *journal; in do_get_write_access() local 1261 journal_t *journal; in jbd2_journal_get_create_access() local 1476 journal_t *journal; in jbd2_journal_dirty_metadata() local 1638 journal_t *journal; in jbd2_journal_forget() local 1806 journal_t *journal; in jbd2_journal_stop() local [all …]
|
A D | revoke.c | 151 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 D | recovery.c | 77 if (max > journal->j_total_len) in do_readahead() 78 max = journal->j_total_len; in do_readahead() 94 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead() 150 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in jread() 229 (journal)->j_fc_last : (journal)->j_last; \ 256 err = journal->j_fc_replay_callback(journal, bh, pass, in fc_do_one_pass() 291 sb = journal->j_superblock; in jbd2_journal_recover() 372 journal->j_tail = 0; in jbd2_journal_skip_recovery() 479 sb = journal->j_superblock; in do_one_pass() 516 journal->j_fc_last : journal->j_last); in do_one_pass() [all …]
|
/linux/fs/reiserfs/ |
A D | journal.c | 2542 journal->j_first_unflushed_offset = journal->j_start; in journal_read() 2588 blkdev_put(journal->j_dev_bd, journal->j_dev_mode); in release_journal_dev() 2680 if (journal->j_max_batch != (journal->j_trans_max) * in check_advise_trans_params() 2862 journal->j_cnode_free_orig = journal->j_cnode_free_list; in journal_init() 3328 if (journal->j_len >= journal->j_trans_max) { in journal_mark_dirty() 3340 if (journal->j_len > journal->j_len_alloc) { in journal_mark_dirty() 3705 && journal->j_len_alloc < journal->j_max_batch in check_journal_end() 4088 ((journal->j_start + journal->j_len + in do_journal_end() 4249 (journal->j_start + journal->j_len + in do_journal_end() 4319 if ((journal->j_start + journal->j_trans_max + 1) >= in do_journal_end() [all …]
|
/linux/drivers/md/bcache/ |
A D | journal.c | 299 struct journal *j = &c->journal; in bch_journal_mark() 432 spin_lock(&c->journal.lock); in btree_flush_write() 445 mask = c->journal.pin.mask; in btree_flush_write() 653 if (c->journal.blocks_free) in journal_reclaim() 712 struct journal *j = container_of(cl, struct journal, io); in journal_write_done() 731 __releases(c->journal.lock) in journal_write_unlocked() 772 bio = &ca->journal.bio; in journal_write_unlocked() 792 ca->journal.seq[ca->journal.cur_idx] = w->data->seq; in journal_write_unlocked() 894 journal.work); in journal_write_work() 896 if (c->journal.cur->dirty) in journal_write_work() [all …]
|
A D | journal.h | 104 struct journal { struct 162 (fifo_idx(&(c)->journal.pin, (l)) > fifo_idx(&(c)->journal.pin, (r))) 177 void bch_journal_next(struct journal *j);
|
/linux/fs/ocfs2/ |
A D | journal.c | 298 journal = osb->journal; in ocfs2_commit_cache() 335 journal_t *journal = osb->journal->j_journal; in ocfs2_start_trans() local 377 struct ocfs2_journal *journal = osb->journal; in ocfs2_commit_trans() local 798 journal_t *journal = osb->journal->j_journal; in ocfs2_set_journal_params() local 825 if (!journal) { in ocfs2_journal_init() 830 osb->journal = journal; in ocfs2_journal_init() 940 struct ocfs2_journal *journal = osb->journal; in ocfs2_journal_toggle_dirty() local 982 journal = osb->journal; in ocfs2_journal_shutdown() 983 if (!journal) in ocfs2_journal_shutdown() 1350 struct ocfs2_journal *journal = osb->journal; in ocfs2_complete_mount_recovery() local [all …]
|
A D | journal.h | 82 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() 172 int ocfs2_journal_wipe(struct ocfs2_journal *journal, 204 wait_event(osb->journal->j_checkpointed, in ocfs2_checkpoint_inode() [all …]
|
/linux/include/linux/ |
A D | jbd2.h | 1680 return (journal->j_total_len - journal->j_fc_wbufsize) / 4; in jbd2_journal_get_max_txn_bufs() 1695 return journal->j_flags & JBD2_ABORT; in is_journal_aborted() 1738 journal->j_chksum_driver == NULL); in jbd2_journal_has_csum_v2or3() 1756 long free = journal->j_free - 32; in jbd2_log_space_left() 1759 free -= atomic_read(&journal-> in jbd2_log_space_left() 1808 read_lock(&journal->j_state_lock); in jbd2_get_latest_transaction() 1809 tid = journal->j_commit_request; in jbd2_get_latest_transaction() 1810 if (journal->j_running_transaction) in jbd2_get_latest_transaction() 1812 read_unlock(&journal->j_state_lock); in jbd2_get_latest_transaction() 1818 journal_t *journal; in jbd2_handle_buffer_credits() local [all …]
|
/linux/include/trace/events/ |
A D | jbd2.h | 16 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_op), [all …]
|
/linux/Documentation/filesystems/ext4/ |
A D | journal.rst | 26 option to control journal behavior. If ``data=journal``, all data and 43 journal inode are replicated in the ext4 superblock. The journal itself 135 The journal block type can be any one of: 180 - journal\_header\_t (12 bytes) 190 - Total number of blocks in this journal. 309 - This journal uses v2 of the checksum on-disk format. Each journal 358 - journal\_header\_t 362 - struct journal\_block\_tag\_s 368 journal feature and block tag flags are set. 541 - journal\_header\_t [all …]
|
/linux/Documentation/admin-guide/device-mapper/ |
A D | dm-integrity.rst | 13 writes sector data and integrity tags into a journal, commits the journal 66 D - direct writes (without journal) 114 The journal watermark in percents. When the size of the journal 153 situation, you can encrypt the journal. 193 copy sectors from one journal section to another journal section 233 * the number of journal sections 244 - journal area contains the bitmap of dirty 248 * journal 253 - every journal entry contains: 266 numbers in the journal. [all …]
|
A D | dm-raid.rst | 202 This option adds a journal device to raid4/5/6 raid sets and 205 The journal device is used as writethrough thus causing writes to 207 Takeover/reshape is not possible with a raid4/5/6 journal device; 213 If 'writeback' is selected the journal device has to be resilient 321 <journal_char> - 'A' - active write-through journal device. 322 - 'a' - active write-back journal device. 323 - 'D' - dead journal device. 324 - '-' - no journal device. 406 1.10.0 Add support for raid4/5/6 journal device 410 1.11.1 Add raid4/5/6 journal write-back support via journal_mode option
|
/linux/Documentation/filesystems/ |
A D | journalling.rst | 12 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 …]
|
A D | gfs2-uevents.rst | 24 with no journal assigned), and read-only (with journal assigned) status 45 of journal recovery for one of the filesystems journals. It has 46 two environment variables, JID= which specifies the journal id which 49 for every journal recovered, whether it is during the initial mount 50 process or as the result of gfs_controld requesting a specific journal 100 If a journal is in use by the filesystem (journals are not 102 numeric journal id in all GFS2 uevents.
|
A D | ubifs-authentication.rst | 134 certain conditions are met (eg. ``fsync(2)``). The journal is used to record 136 of the index. During mount, the journal is read from the flash and replayed 139 UBIFS reserves a bunch of LEBs just for the journal called *log area*. The 149 The log area is maintained as a ring. Whenever the journal is almost full, 155 When writing a journal entry, UBIFS first ensures that enough space is 326 The journal is authenticated too. Since the journal is continuously written 333 of the hash chain. That way a journal can be authenticated up to the last 335 node cannot be authenticated and is skipped during journal replay. 337 We get this picture for journal authentication:: 360 skip any journal heads for replay. An attacker can only remove bud nodes or [all …]
|
/linux/fs/ext4/ |
A D | ext4_jbd2.c | 66 journal_t *journal; in ext4_journal_check_start() local 76 journal = EXT4_SB(sb)->s_journal; in ext4_journal_check_start() 82 if (journal && is_journal_aborted(journal)) { in ext4_journal_check_start() 83 ext4_abort(sb, -journal->j_errno, "Detected aborted journal"); in ext4_journal_check_start() 93 journal_t *journal; in __ext4_journal_start_sb() local 102 journal = EXT4_SB(sb)->s_journal; in __ext4_journal_start_sb() 103 if (!journal || (EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY)) in __ext4_journal_start_sb() 105 return jbd2__journal_start(journal, blocks, rsv_blocks, revoke_creds, in __ext4_journal_start_sb()
|
A D | fast_commit.c | 1069 ret = ext4_fc_wait_inode_data_all(journal); in ext4_fc_perform_commit() 1077 if (journal->j_fs_dev != journal->j_dev) in ext4_fc_perform_commit() 1078 blkdev_issue_flush(journal->j_fs_dev); in ext4_fc_perform_commit() 1156 commit_tid > journal->j_commit_sequence) in ext4_fc_commit() 1167 ret = ext4_fc_perform_commit(journal); in ext4_fc_commit() 1174 ret = jbd2_fc_wait_bufs(journal, nblks); in ext4_fc_commit() 1181 jbd2_fc_end_commit(journal); in ext4_fc_commit() 1227 struct super_block *sb = journal->j_private; in ext4_fc_cleanup() 1235 jbd2_fc_release_bufs(journal); in ext4_fc_cleanup() 1933 struct super_block *sb = journal->j_private; in ext4_fc_replay_scan() [all …]
|
A D | fsync.c | 108 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_fsync_journal() local 111 if (journal->j_flags & JBD2_BARRIER && in ext4_fsync_journal() 112 !jbd2_trans_will_send_data_barrier(journal, commit_tid)) in ext4_fsync_journal() 115 return ext4_fc_commit(journal, commit_tid); in ext4_fsync_journal()
|
A D | super.c | 650 if (journal) in ext4_handle_error() 5164 journal_t *journal; in ext4_get_journal() local 5174 if (!journal) { in ext4_get_journal() 5181 return journal; in ext4_get_journal() 5188 journal_t *journal; in ext4_get_dev_journal() local 5252 if (!journal) { in ext4_get_dev_journal() 5269 return journal; in ext4_get_dev_journal() 5308 if (!journal) in ext4_load_journal() 5312 if (!journal) in ext4_load_journal() 5668 if (journal) { in ext4_freeze() [all …]
|
A D | inode.c | 3123 journal_t *journal; in ext4_bmap() local 3163 journal = EXT4_JOURNAL(inode); in ext4_bmap() 3247 if (journal) in ext4_releasepage() 3257 if (journal) { in ext4_inode_datasync_dirty() 4869 if (journal) { in __ext4_iget() 4873 read_lock(&journal->j_state_lock); in __ext4_iget() 4881 tid = journal->j_commit_sequence; in __ext4_iget() 5925 journal_t *journal; in ext4_change_inode_journal_flag() local 5940 journal = EXT4_JOURNAL(inode); in ext4_change_inode_journal_flag() 5941 if (!journal) in ext4_change_inode_journal_flag() [all …]
|
/linux/Documentation/admin-guide/ |
A D | ext4.rst | 66 the filesystem with a large journal can also be helpful for 84 * journal checksumming for robustness, performance 161 When the external journal device's major/minor numbers have changed, 167 Don't load the journal on mounting. Note that if the filesystem was 168 not unmounted cleanly, skipping the journal replay will lead to the 172 data=journal 179 metadata being committed to the journal. 183 system after its metadata has been committed to the journal. 396 incompatible with data=journal. 424 journal mode. [all …]
|