Home
last modified time | relevance | path

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

123456

/OK3568_Linux_fs/kernel/fs/jbd2/
H A Djournal.c149 journal_t *journal = from_timer(journal, t, j_commit_timer); in commit_timeout() local
151 wake_up_process(journal->j_task); in commit_timeout()
174 journal_t *journal = arg; in kjournald2() local
181 timer_setup(&journal->j_commit_timer, commit_timeout, 0); in kjournald2()
186 journal->j_task = current; in kjournald2()
187 wake_up(&journal->j_wait_done_commit); in kjournald2()
200 write_lock(&journal->j_state_lock); in kjournald2()
203 if (journal->j_flags & JBD2_UNMOUNT) in kjournald2()
207 journal->j_commit_sequence, journal->j_commit_request); in kjournald2()
209 if (journal->j_commit_sequence != journal->j_commit_request) { in kjournald2()
[all …]
H A Dcommit.c116 static int journal_submit_commit_record(journal_t *journal, in journal_submit_commit_record() argument
128 if (is_journal_aborted(journal)) in journal_submit_commit_record()
141 if (jbd2_has_feature_checksum(journal)) { in journal_submit_commit_record()
146 jbd2_commit_block_csum_set(journal, bh); in journal_submit_commit_record()
154 if (journal->j_flags & JBD2_BARRIER && in journal_submit_commit_record()
155 !jbd2_has_feature_async_commit(journal)) in journal_submit_commit_record()
169 static int journal_wait_on_commit_record(journal_t *journal, in journal_wait_on_commit_record() argument
222 int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode) in jbd2_wait_inode_data() argument
241 static int journal_submit_data_buffers(journal_t *journal, in journal_submit_data_buffers() argument
247 spin_lock(&journal->j_list_lock); in journal_submit_data_buffers()
[all …]
H A Dcheckpoint.c108 void __jbd2_log_wait_for_space(journal_t *journal) in __jbd2_log_wait_for_space() argument
109 __acquires(&journal->j_state_lock) in __jbd2_log_wait_for_space()
110 __releases(&journal->j_state_lock) in __jbd2_log_wait_for_space()
115 nblocks = journal->j_max_transaction_buffers; in __jbd2_log_wait_for_space()
116 while (jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
117 write_unlock(&journal->j_state_lock); in __jbd2_log_wait_for_space()
118 mutex_lock_io(&journal->j_checkpoint_mutex); in __jbd2_log_wait_for_space()
131 write_lock(&journal->j_state_lock); in __jbd2_log_wait_for_space()
132 if (journal->j_flags & JBD2_ABORT) { in __jbd2_log_wait_for_space()
133 mutex_unlock(&journal->j_checkpoint_mutex); in __jbd2_log_wait_for_space()
[all …]
H A Dtransaction.c68 static int jbd2_descriptor_blocks_per_trans(journal_t *journal) in jbd2_descriptor_blocks_per_trans() argument
70 int tag_space = journal->j_blocksize - sizeof(journal_header_t); in jbd2_descriptor_blocks_per_trans()
75 if (jbd2_journal_has_csum_v2or3(journal)) in jbd2_descriptor_blocks_per_trans()
78 tags_per_block = (tag_space - 16) / journal_tag_bytes(journal); in jbd2_descriptor_blocks_per_trans()
83 return 1 + DIV_ROUND_UP(journal->j_max_transaction_buffers, in jbd2_descriptor_blocks_per_trans()
102 static void jbd2_get_transaction(journal_t *journal, in jbd2_get_transaction() argument
105 transaction->t_journal = journal; in jbd2_get_transaction()
108 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction()
109 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction()
113 jbd2_descriptor_blocks_per_trans(journal) + in jbd2_get_transaction()
[all …]
H A Drevoke.c131 static inline int hash(journal_t *journal, unsigned long long block) in hash() argument
133 return hash_64(block, journal->j_revoke->hash_shift); in hash()
136 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, in insert_revoke_hash() argument
151 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
152 spin_lock(&journal->j_revoke_lock); in insert_revoke_hash()
154 spin_unlock(&journal->j_revoke_lock); in insert_revoke_hash()
160 static struct jbd2_revoke_record_s *find_revoke_record(journal_t *journal, in find_revoke_record() argument
166 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
168 spin_lock(&journal->j_revoke_lock); in find_revoke_record()
172 spin_unlock(&journal->j_revoke_lock); in find_revoke_record()
[all …]
H A Drecovery.c38 static int do_one_pass(journal_t *journal,
66 static int do_readahead(journal_t *journal, unsigned int start) in do_readahead() argument
76 max = start + (128 * 1024 / journal->j_blocksize); in do_readahead()
77 if (max > journal->j_total_len) in do_readahead()
78 max = journal->j_total_len; in do_readahead()
86 err = jbd2_journal_bmap(journal, next, &blocknr); in do_readahead()
94 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead()
128 static int jread(struct buffer_head **bhp, journal_t *journal, in jread() argument
137 if (offset >= journal->j_total_len) { in jread()
142 err = jbd2_journal_bmap(journal, offset, &blocknr); in jread()
[all …]
/OK3568_Linux_fs/kernel/fs/reiserfs/
H A Djournal.c94 struct reiserfs_journal *journal);
115 struct reiserfs_journal *journal = SB_JOURNAL(sb); in init_journal_hash() local
116 memset(journal->j_hash_table, 0, in init_journal_hash()
157 struct reiserfs_journal *journal = SB_JOURNAL(sb); in get_bitmap_node() local
159 struct list_head *entry = journal->j_bitmap_nodes.next; in get_bitmap_node()
161 journal->j_used_bitmap_nodes++; in get_bitmap_node()
164 if (entry != &journal->j_bitmap_nodes) { in get_bitmap_node()
168 journal->j_free_bitmap_nodes--; in get_bitmap_node()
181 struct reiserfs_journal *journal = SB_JOURNAL(sb); in free_bitmap_node() local
182 journal->j_used_bitmap_nodes--; in free_bitmap_node()
[all …]
/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Djournal.c38 struct journal_device *ja = &ca->journal; in journal_read_bucket()
42 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket()
184 struct journal_device *ja = &ca->journal; in bch_journal_read()
286 c->journal.seq = list_entry(list->prev, in bch_journal_read()
299 struct journal *j = &c->journal; in bch_journal_mark()
410 void bch_journal_space_reserve(struct journal *j) in bch_journal_space_reserve()
425 if (c->journal.btree_flushing) in btree_flush_write()
428 spin_lock(&c->journal.flush_write_lock); in btree_flush_write()
429 if (c->journal.btree_flushing) { in btree_flush_write()
430 spin_unlock(&c->journal.flush_write_lock); in btree_flush_write()
[all …]
H 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);
/OK3568_Linux_fs/kernel/fs/ocfs2/
H A Djournal.c63 static void ocfs2_queue_recovery_completion(struct ocfs2_journal *journal,
156 ocfs2_queue_recovery_completion(osb->journal, i, NULL, in ocfs2_queue_replay_slots()
298 struct ocfs2_journal *journal = NULL; in ocfs2_commit_cache() local
300 journal = osb->journal; in ocfs2_commit_cache()
303 down_write(&journal->j_trans_barrier); in ocfs2_commit_cache()
305 flushed = atomic_read(&journal->j_num_trans); in ocfs2_commit_cache()
308 up_write(&journal->j_trans_barrier); in ocfs2_commit_cache()
312 jbd2_journal_lock_updates(journal->j_journal); in ocfs2_commit_cache()
313 status = jbd2_journal_flush(journal->j_journal); in ocfs2_commit_cache()
314 jbd2_journal_unlock_updates(journal->j_journal); in ocfs2_commit_cache()
[all …]
H A Djournal.h80 static inline void ocfs2_set_ci_lock_trans(struct ocfs2_journal *journal, in ocfs2_set_ci_lock_trans() argument
84 ci->ci_last_trans = journal->j_trans_id; in ocfs2_set_ci_lock_trans()
96 struct ocfs2_journal *journal = in ocfs2_ci_fully_checkpointed() local
97 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed()
100 ret = time_after(journal->j_trans_id, ci->ci_last_trans); in ocfs2_ci_fully_checkpointed()
112 struct ocfs2_journal *journal = in ocfs2_ci_is_new() local
113 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new()
116 ret = !(time_after(journal->j_trans_id, ci->ci_created_trans)); in ocfs2_ci_is_new()
139 ci->ci_created_trans = osb->journal->j_trans_id; in ocfs2_ci_set_new()
172 int ocfs2_journal_init(struct ocfs2_journal *journal,
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Djbd2.h1260 void (*j_fc_cleanup_callback)(struct journal_s *journal, int);
1273 int (*j_fc_replay_callback)(struct journal_s *journal,
1390 int jbd2_journal_get_log_tail(journal_t *journal, tid_t *tid,
1392 int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1393 void jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1399 void __jbd2_journal_clean_checkpoint_list(journal_t *journal, bool destroy);
1401 void jbd2_journal_destroy_checkpoint(journal_t *journal);
1491 extern int jbd2_journal_try_to_free_buffers(journal_t *journal, struct page *page);
1510 extern int jbd2_journal_load (journal_t *journal);
1512 extern int jbd2_journal_recover (journal_t *journal);
[all …]
/OK3568_Linux_fs/kernel/include/trace/events/
H A Djbd2.h16 TP_PROTO(journal_t *journal, int result),
18 TP_ARGS(journal, result),
26 __entry->dev = journal->j_fs_dev->bd_dev;
36 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
38 TP_ARGS(journal, commit_transaction),
47 __entry->dev = journal->j_fs_dev->bd_dev;
59 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
61 TP_ARGS(journal, commit_transaction)
66 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
68 TP_ARGS(journal, commit_transaction)
[all …]
/OK3568_Linux_fs/kernel/Documentation/filesystems/ext4/
H A Djournal.rst6 Introduced in ext3, the ext4 filesystem employs a journal to protect the
12 committed is also written to the journal. At some later point in time,
13 the journal code writes the transactions to their final locations on
16 crash during the second slow write, the journal can be replayed all the
18 gets written through the journal to the disk. The effect of this is to
23 through the journal. This means that file data blocks are /not/
26 option to control journal behavior. If ``data=journal``, all data and
27 metadata are written to disk through the journal. This is slower but
29 disk before the metadata are written to disk through the journal.
33 mode works by logging metadata blocks to the journal. In fast commit
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-core/systemd/systemd/
H A D0015-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch24 src/libsystemd/sd-journal/journal-send.c | 5 +++++
44 diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c
46 --- a/src/libsystemd/sd-journal/journal-send.c
47 +++ b/src/libsystemd/sd-journal/journal-send.c
H A D0005-src-basic-missing.h-check-for-missing-strndupa.patch44 src/journal-remote/journal-remote-main.c | 1 +
45 src/journal/journalctl.c | 1 +
51 src/libsystemd/sd-journal/sd-journal.c | 1 +
64 src/shared/journal-importer.c | 1 +
359 diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
361 --- a/src/journal-remote/journal-remote-main.c
362 +++ b/src/journal-remote/journal-remote-main.c
369 #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
370 #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
371 diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
[all …]
H A D0003-missing_type.h-add-comparison_fn_t.patch20 src/libsystemd/sd-journal/catalog.c | 1 +
47 diff --git a/src/libsystemd/sd-journal/catalog.c b/src/libsystemd/sd-journal/catalog.c
49 --- a/src/libsystemd/sd-journal/catalog.c
50 +++ b/src/libsystemd/sd-journal/catalog.c
/OK3568_Linux_fs/kernel/Documentation/admin-guide/device-mapper/
H A Ddm-integrity.rst12 To guarantee write atomicity, the dm-integrity target uses journal, it
13 writes sector data and integrity tags into a journal, commits the journal
29 instead of a journal. If a bit in the bitmap is 1, the corresponding
32 is faster than the journal mode, because we don't have to write the data
66 D - direct writes (without journal)
73 journal and atomicity is guaranteed. In case of crash,
81 R - recovery mode - in this mode, journal is not replayed,
92 The size of journal, this argument is used only if formatting the
114 The journal watermark in percents. When the size of the journal
115 exceeds this watermark, the thread that flushes the journal will
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-core/systemd/
H A Dsystemd_250.5.bb145 # Sign the journal for anti-tampering
153 # importd requires journal-upload/xz/zlib/bzip2/gcrypt
157 PACKAGECONFIG[journal-upload] = "-Dlibcurl=true,-Dlibcurl=false,curl"
279 chown root:systemd-journal ${D}${localstatedir}/log/journal
281 # journal-remote creates this at start
282 rm -rf ${D}${localstatedir}/log/journal/remote
364 ${PN}-journal-gatewayd \
365 ${PN}-journal-upload \
366 ${PN}-journal-remote \
377 SUMMARY:${PN}-journal-gatewayd = "HTTP server for journal events"
[all …]
/OK3568_Linux_fs/kernel/Documentation/filesystems/
H 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
38 You still need to actually journal your filesystem changes, this is done
40 the modification of each of the buffers with calls to the journal layer,
70 jbd2_journal_destroy() to clean up your in-core journal object.
[all …]
H A Dgfs2-uevents.rst24 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.
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0015-distinguish-XSI-compliant-strerror_r-from-GNU-specif.patch24 src/libsystemd/sd-journal/journal-send.c | 5 +++++
42 --- a/src/libsystemd/sd-journal/journal-send.c
43 +++ b/src/libsystemd/sd-journal/journal-send.c
H A D0005-src-basic-missing.h-check-for-missing-strndupa.patch44 src/journal-remote/journal-remote-main.c | 1 +
45 src/journal/journalctl.c | 1 +
51 src/libsystemd/sd-journal/sd-journal.c | 1 +
64 src/shared/journal-importer.c | 1 +
293 --- a/src/journal-remote/journal-remote-main.c
294 +++ b/src/journal-remote/journal-remote-main.c
301 #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
302 #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
303 --- a/src/journal/journalctl.c
304 +++ b/src/journal/journalctl.c
[all …]
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dext4_jbd2.c66 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()
H A Dfast_commit.c866 static int ext4_fc_submit_inode_data_all(journal_t *journal) in ext4_fc_submit_inode_data_all() argument
868 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_submit_inode_data_all()
903 static int ext4_fc_wait_inode_data_all(journal_t *journal) in ext4_fc_wait_inode_data_all() argument
905 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_wait_inode_data_all()
917 ret = jbd2_wait_inode_data(journal, pos->jinode); in ext4_fc_wait_inode_data_all()
928 static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc) in ext4_fc_commit_dentry_updates() argument
932 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_commit_dentry_updates()
1007 static int ext4_fc_perform_commit(journal_t *journal) in ext4_fc_perform_commit() argument
1009 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_perform_commit()
1019 ret = ext4_fc_submit_inode_data_all(journal); in ext4_fc_perform_commit()
[all …]

123456