Home
last modified time | relevance | path

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

/linux-4.1.27/fs/jbd/
Djournal.c90 static void __journal_abort_soft (journal_t *journal, int errno);
91 static const char *journal_dev_name(journal_t *journal, char *buffer);
140 journal_t *journal = arg; in kjournald() local
147 setup_timer(&journal->j_commit_timer, commit_timeout, in kjournald()
153 journal->j_task = current; in kjournald()
154 wake_up(&journal->j_wait_done_commit); in kjournald()
157 journal->j_commit_interval / HZ); in kjournald()
162 spin_lock(&journal->j_state_lock); in kjournald()
165 if (journal->j_flags & JFS_UNMOUNT) in kjournald()
169 journal->j_commit_sequence, journal->j_commit_request); in kjournald()
[all …]
Dcheckpoint.c122 void __log_wait_for_space(journal_t *journal) in __log_wait_for_space() argument
125 assert_spin_locked(&journal->j_state_lock); in __log_wait_for_space()
127 nblocks = jbd_space_needed(journal); in __log_wait_for_space()
128 while (__log_space_left(journal) < nblocks) { in __log_wait_for_space()
129 if (journal->j_flags & JFS_ABORT) in __log_wait_for_space()
131 spin_unlock(&journal->j_state_lock); in __log_wait_for_space()
132 mutex_lock(&journal->j_checkpoint_mutex); in __log_wait_for_space()
145 spin_lock(&journal->j_state_lock); in __log_wait_for_space()
146 spin_lock(&journal->j_list_lock); in __log_wait_for_space()
147 nblocks = jbd_space_needed(journal); in __log_wait_for_space()
[all …]
Dcommit.c105 static int inverted_lock(journal_t *journal, struct buffer_head *bh) in inverted_lock() argument
108 spin_unlock(&journal->j_list_lock); in inverted_lock()
122 static int journal_write_commit_record(journal_t *journal, in journal_write_commit_record() argument
130 if (is_journal_aborted(journal)) in journal_write_commit_record()
133 descriptor = journal_get_descriptor_buffer(journal); in journal_write_commit_record()
147 if (journal->j_flags & JFS_BARRIER) in journal_write_commit_record()
182 static int journal_submit_data_buffers(journal_t *journal, in journal_submit_data_buffers() argument
190 struct buffer_head **wbuf = journal->j_wbuf; in journal_submit_data_buffers()
203 spin_lock(&journal->j_list_lock); in journal_submit_data_buffers()
221 spin_unlock(&journal->j_list_lock); in journal_submit_data_buffers()
[all …]
Drevoke.c133 static inline int hash(journal_t *journal, unsigned int block) in hash() argument
135 struct jbd_revoke_table_s *table = journal->j_revoke; in hash()
140 static int insert_revoke_hash(journal_t *journal, unsigned int blocknr, in insert_revoke_hash() argument
153 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
154 spin_lock(&journal->j_revoke_lock); in insert_revoke_hash()
156 spin_unlock(&journal->j_revoke_lock); in insert_revoke_hash()
169 static struct jbd_revoke_record_s *find_revoke_record(journal_t *journal, in find_revoke_record() argument
175 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
177 spin_lock(&journal->j_revoke_lock); in find_revoke_record()
181 spin_unlock(&journal->j_revoke_lock); in find_revoke_record()
[all …]
Dtransaction.c49 get_transaction(journal_t *journal, transaction_t *transaction) in get_transaction() argument
51 transaction->t_journal = journal; in get_transaction()
54 transaction->t_tid = journal->j_transaction_sequence++; in get_transaction()
55 transaction->t_expires = jiffies + journal->j_commit_interval; in get_transaction()
59 journal->j_commit_timer.expires = in get_transaction()
61 add_timer(&journal->j_commit_timer); in get_transaction()
63 J_ASSERT(journal->j_running_transaction == NULL); in get_transaction()
64 journal->j_running_transaction = transaction; in get_transaction()
84 static int start_this_handle(journal_t *journal, handle_t *handle) in start_this_handle() argument
92 if (nblocks > journal->j_max_transaction_buffers) { in start_this_handle()
[all …]
Drecovery.c41 static int do_one_pass(journal_t *journal,
69 static int do_readahead(journal_t *journal, unsigned int start) in do_readahead() argument
79 max = start + (128 * 1024 / journal->j_blocksize); in do_readahead()
80 if (max > journal->j_maxlen) in do_readahead()
81 max = journal->j_maxlen; in do_readahead()
89 err = journal_bmap(journal, next, &blocknr); in do_readahead()
97 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead()
131 static int jread(struct buffer_head **bhp, journal_t *journal, in jread() argument
140 if (offset >= journal->j_maxlen) { in jread()
145 err = journal_bmap(journal, offset, &blocknr); in jread()
[all …]
DMakefile7 jbd-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
DKconfig6 used to add journal support to other file systems or block
/linux-4.1.27/fs/jbd2/
Djournal.c103 static void __journal_abort_soft (journal_t *journal, int errno);
191 journal_t *journal = arg; in kjournald2() local
198 setup_timer(&journal->j_commit_timer, commit_timeout, in kjournald2()
204 journal->j_task = current; in kjournald2()
205 wake_up(&journal->j_wait_done_commit); in kjournald2()
210 write_lock(&journal->j_state_lock); in kjournald2()
213 if (journal->j_flags & JBD2_UNMOUNT) in kjournald2()
217 journal->j_commit_sequence, journal->j_commit_request); in kjournald2()
219 if (journal->j_commit_sequence != journal->j_commit_request) { in kjournald2()
221 write_unlock(&journal->j_state_lock); in kjournald2()
[all …]
Dcheckpoint.c111 void __jbd2_log_wait_for_space(journal_t *journal) in __jbd2_log_wait_for_space() argument
116 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
117 while (jbd2_log_space_left(journal) < nblocks) { in __jbd2_log_wait_for_space()
118 write_unlock(&journal->j_state_lock); in __jbd2_log_wait_for_space()
119 mutex_lock(&journal->j_checkpoint_mutex); in __jbd2_log_wait_for_space()
132 write_lock(&journal->j_state_lock); in __jbd2_log_wait_for_space()
133 if (journal->j_flags & JBD2_ABORT) { in __jbd2_log_wait_for_space()
134 mutex_unlock(&journal->j_checkpoint_mutex); in __jbd2_log_wait_for_space()
137 spin_lock(&journal->j_list_lock); in __jbd2_log_wait_for_space()
138 nblocks = jbd2_space_needed(journal); in __jbd2_log_wait_for_space()
[all …]
Dcommit.c119 static int journal_submit_commit_record(journal_t *journal, in journal_submit_commit_record() argument
131 if (is_journal_aborted(journal)) in journal_submit_commit_record()
134 bh = jbd2_journal_get_descriptor_buffer(journal); in journal_submit_commit_record()
145 if (JBD2_HAS_COMPAT_FEATURE(journal, in journal_submit_commit_record()
151 jbd2_commit_block_csum_set(journal, bh); in journal_submit_commit_record()
159 if (journal->j_flags & JBD2_BARRIER && in journal_submit_commit_record()
160 !JBD2_HAS_INCOMPAT_FEATURE(journal, in journal_submit_commit_record()
174 static int journal_wait_on_commit_record(journal_t *journal, in journal_wait_on_commit_record() argument
217 static int journal_submit_data_buffers(journal_t *journal, in journal_submit_data_buffers() argument
224 spin_lock(&journal->j_list_lock); in journal_submit_data_buffers()
[all …]
Drevoke.c134 static inline int hash(journal_t *journal, unsigned long long block) in hash() argument
136 return hash_64(block, journal->j_revoke->hash_shift); in hash()
139 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, in insert_revoke_hash() argument
152 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
153 spin_lock(&journal->j_revoke_lock); in insert_revoke_hash()
155 spin_unlock(&journal->j_revoke_lock); in insert_revoke_hash()
168 static struct jbd2_revoke_record_s *find_revoke_record(journal_t *journal, in find_revoke_record() argument
174 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
176 spin_lock(&journal->j_revoke_lock); in find_revoke_record()
180 spin_unlock(&journal->j_revoke_lock); in find_revoke_record()
[all …]
Dtransaction.c83 jbd2_get_transaction(journal_t *journal, transaction_t *transaction) in jbd2_get_transaction() argument
85 transaction->t_journal = journal; in jbd2_get_transaction()
88 transaction->t_tid = journal->j_transaction_sequence++; in jbd2_get_transaction()
89 transaction->t_expires = jiffies + journal->j_commit_interval; in jbd2_get_transaction()
93 atomic_read(&journal->j_reserved_credits)); in jbd2_get_transaction()
99 journal->j_commit_timer.expires = round_jiffies_up(transaction->t_expires); in jbd2_get_transaction()
100 add_timer(&journal->j_commit_timer); in jbd2_get_transaction()
102 J_ASSERT(journal->j_running_transaction == NULL); in jbd2_get_transaction()
103 journal->j_running_transaction = transaction; in jbd2_get_transaction()
149 static void wait_transaction_locked(journal_t *journal) in wait_transaction_locked() argument
[all …]
Drecovery.c42 static int do_one_pass(journal_t *journal,
70 static int do_readahead(journal_t *journal, unsigned int start) in do_readahead() argument
80 max = start + (128 * 1024 / journal->j_blocksize); in do_readahead()
81 if (max > journal->j_maxlen) in do_readahead()
82 max = journal->j_maxlen; in do_readahead()
90 err = jbd2_journal_bmap(journal, next, &blocknr); in do_readahead()
98 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize); in do_readahead()
132 static int jread(struct buffer_head **bhp, journal_t *journal, in jread() argument
141 if (offset >= journal->j_maxlen) { in jread()
146 err = jbd2_journal_bmap(journal, offset, &blocknr); in jread()
[all …]
DMakefile7 jbd2-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
DKconfig10 journal support to other file systems or block devices such
/linux-4.1.27/fs/reiserfs/
Djournal.c95 struct reiserfs_journal *journal);
116 struct reiserfs_journal *journal = SB_JOURNAL(sb); in init_journal_hash() local
117 memset(journal->j_hash_table, 0, in init_journal_hash()
158 struct reiserfs_journal *journal = SB_JOURNAL(sb); in get_bitmap_node() local
160 struct list_head *entry = journal->j_bitmap_nodes.next; in get_bitmap_node()
162 journal->j_used_bitmap_nodes++; in get_bitmap_node()
165 if (entry != &journal->j_bitmap_nodes) { in get_bitmap_node()
169 journal->j_free_bitmap_nodes--; in get_bitmap_node()
182 struct reiserfs_journal *journal = SB_JOURNAL(sb); in free_bitmap_node() local
183 journal->j_used_bitmap_nodes--; in free_bitmap_node()
[all …]
DMakefile9 hashes.o tail_conversion.o journal.o resize.o \
Dsuper.c679 struct reiserfs_journal *journal = SB_JOURNAL(s); in reiserfs_show_options() local
719 if (journal->j_max_commit_age != journal->j_default_max_commit_age) in reiserfs_show_options()
720 seq_printf(seq, ",commit=%d", journal->j_max_commit_age); in reiserfs_show_options()
1393 struct reiserfs_journal *journal = SB_JOURNAL(s); in reiserfs_remount() local
1455 journal->j_max_commit_age = commit_max_age; in reiserfs_remount()
1456 journal->j_max_trans_age = commit_max_age; in reiserfs_remount()
1459 journal->j_max_commit_age = journal->j_default_max_commit_age; in reiserfs_remount()
1460 journal->j_max_trans_age = JOURNAL_MAX_TRANS_AGE; in reiserfs_remount()
1505 if (reiserfs_is_journal_aborted(journal)) { in reiserfs_remount()
1506 err = journal->j_errno; in reiserfs_remount()
Dprocfs.c53 #define SFPJ( x ) SFP( journal.x )
Dreiserfs.h506 } journal; member
759 #define reiserfs_is_journal_aborted(journal) (unlikely (__reiserfs_is_journal_aborted (journal))) argument
761 *journal) in __reiserfs_is_journal_aborted()
763 return test_bit(J_ABORTED, &journal->j_state); in __reiserfs_is_journal_aborted()
/linux-4.1.27/include/trace/events/
Djbd.h12 TP_PROTO(journal_t *journal, int result),
14 TP_ARGS(journal, result),
22 __entry->dev = journal->j_fs_dev->bd_dev;
33 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
35 TP_ARGS(journal, commit_transaction),
43 __entry->dev = journal->j_fs_dev->bd_dev;
54 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
56 TP_ARGS(journal, commit_transaction)
61 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
63 TP_ARGS(journal, commit_transaction)
[all …]
Djbd2.h15 TP_PROTO(journal_t *journal, int result),
17 TP_ARGS(journal, result),
25 __entry->dev = journal->j_fs_dev->bd_dev;
35 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
37 TP_ARGS(journal, commit_transaction),
46 __entry->dev = journal->j_fs_dev->bd_dev;
58 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
60 TP_ARGS(journal, commit_transaction)
65 TP_PROTO(journal_t *journal, transaction_t *commit_transaction),
67 TP_ARGS(journal, commit_transaction)
[all …]
/linux-4.1.27/drivers/md/bcache/
Djournal.c36 struct journal_device *ja = &ca->journal; in journal_read_bucket()
40 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket()
159 struct journal_device *ja = &ca->journal; in bch_journal_read()
258 c->journal.seq = list_entry(list->prev, in bch_journal_read()
271 struct journal *j = &c->journal; in bch_journal_mark()
378 if (btree_current_write(b)->journal) { in btree_flush_write()
382 btree_current_write(best)->journal, in btree_flush_write()
383 btree_current_write(b)->journal)) { in btree_flush_write()
391 if (!btree_current_write(b)->journal) { in btree_flush_write()
408 struct cache *ca = container_of(ja, struct cache, journal); in journal_discard_endio()
[all …]
Djournal.h103 struct journal { struct
157 (fifo_idx(&(c)->journal.pin, (l)) > fifo_idx(&(c)->journal.pin, (r)))
170 void bch_journal_next(struct journal *);
DMakefile5 io.o journal.o movinggc.o request.o stats.o super.o sysfs.o trace.o\
Dsuper.c1433 if (c->journal.cur) { in cache_set_flush()
1434 cancel_delayed_work_sync(&c->journal.work); in cache_set_flush()
1436 c->journal.work.work.func(&c->journal.work.work); in cache_set_flush()
1583 LIST_HEAD(journal); in run_cache_set()
1588 if (bch_journal_read(c, &journal)) in run_cache_set()
1594 if (list_empty(&journal)) in run_cache_set()
1597 j = &list_entry(journal.prev, struct journal_replay, list)->j; in run_cache_set()
1631 bch_journal_mark(c, &journal); in run_cache_set()
1640 bch_journal_next(&c->journal); in run_cache_set()
1660 bch_journal_replay(c, &journal); in run_cache_set()
[all …]
Dbcache.h447 struct journal_device journal; member
647 struct journal journal; member
Dbtree.c331 if (w->journal) { in btree_complete_write()
332 atomic_dec_bug(w->journal); in btree_complete_write()
333 __closure_wake_up(&b->c->journal.wait); in btree_complete_write()
337 w->journal = NULL; in btree_complete_write()
534 if (w->journal && in bch_btree_leaf_dirty()
535 journal_pin_cmp(b->c, w->journal, journal_ref)) { in bch_btree_leaf_dirty()
536 atomic_dec_bug(w->journal); in bch_btree_leaf_dirty()
537 w->journal = NULL; in bch_btree_leaf_dirty()
540 if (!w->journal) { in bch_btree_leaf_dirty()
541 w->journal = journal_ref; in bch_btree_leaf_dirty()
[all …]
Dbtree.h105 atomic_t *journal; member
Dsysfs.c564 sysfs_print(active_journal_entries, fifo_used(&c->journal.pin)); in SHOW()
/linux-4.1.27/fs/ocfs2/
Djournal.c77 static void ocfs2_queue_recovery_completion(struct ocfs2_journal *journal,
170 ocfs2_queue_recovery_completion(osb->journal, i, NULL, in ocfs2_queue_replay_slots()
311 struct ocfs2_journal *journal = NULL; in ocfs2_commit_cache() local
313 journal = osb->journal; in ocfs2_commit_cache()
316 down_write(&journal->j_trans_barrier); in ocfs2_commit_cache()
318 flushed = atomic_read(&journal->j_num_trans); in ocfs2_commit_cache()
321 up_write(&journal->j_trans_barrier); in ocfs2_commit_cache()
325 jbd2_journal_lock_updates(journal->j_journal); in ocfs2_commit_cache()
326 status = jbd2_journal_flush(journal->j_journal); in ocfs2_commit_cache()
327 jbd2_journal_unlock_updates(journal->j_journal); in ocfs2_commit_cache()
[all …]
Djournal.h94 static inline void ocfs2_set_ci_lock_trans(struct ocfs2_journal *journal, in ocfs2_set_ci_lock_trans() argument
98 ci->ci_last_trans = journal->j_trans_id; in ocfs2_set_ci_lock_trans()
110 struct ocfs2_journal *journal = in ocfs2_ci_fully_checkpointed() local
111 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_fully_checkpointed()
114 ret = time_after(journal->j_trans_id, ci->ci_last_trans); in ocfs2_ci_fully_checkpointed()
126 struct ocfs2_journal *journal = in ocfs2_ci_is_new() local
127 OCFS2_SB(ocfs2_metadata_cache_get_super(ci))->journal; in ocfs2_ci_is_new()
130 ret = !(time_after(journal->j_trans_id, ci->ci_created_trans)); in ocfs2_ci_is_new()
153 ci->ci_created_trans = osb->journal->j_trans_id; in ocfs2_ci_set_new()
187 int ocfs2_journal_init(struct ocfs2_journal *journal,
[all …]
Dsuper.c303 "Journal", osb->journal->j_state, in ocfs2_osb_dump()
304 osb->journal->j_trans_id, in ocfs2_osb_dump()
305 atomic_read(&osb->journal->j_num_trans)); in ocfs2_osb_dump()
427 if (jbd2_journal_start_commit(OCFS2_SB(sb)->journal->j_journal, in ocfs2_sync_fs()
430 jbd2_log_wait_commit(OCFS2_SB(sb)->journal->j_journal, in ocfs2_sync_fs()
2026 jbd2_journal_check_used_features(osb->journal->j_journal, 0, 0, in ocfs2_journal_addressable()
2047 struct ocfs2_journal *journal; in ocfs2_initialize_super() local
2233 journal = kzalloc(sizeof(struct ocfs2_journal), GFP_KERNEL); in ocfs2_initialize_super()
2234 if (!journal) { in ocfs2_initialize_super()
2239 osb->journal = journal; in ocfs2_initialize_super()
[all …]
Dinode.c133 journal_t *journal = OCFS2_SB(sb)->journal->j_journal; in ocfs2_iget() local
180 if (journal) { in ocfs2_iget()
185 read_lock(&journal->j_state_lock); in ocfs2_iget()
186 if (journal->j_running_transaction) in ocfs2_iget()
187 transaction = journal->j_running_transaction; in ocfs2_iget()
189 transaction = journal->j_committing_transaction; in ocfs2_iget()
193 tid = journal->j_commit_sequence; in ocfs2_iget()
194 read_unlock(&journal->j_state_lock); in ocfs2_iget()
1173 jbd2_journal_release_jbd_inode(OCFS2_SB(inode->i_sb)->journal->j_journal, in ocfs2_clear_inode()
DMakefile26 journal.o \
Daops.c791 journal_t *journal = osb->journal->j_journal; in ocfs2_direct_IO_write() local
887 ret = jbd2_journal_force_commit(journal); in ocfs2_direct_IO_write()
935 tmp_ret = jbd2_journal_force_commit(journal); in ocfs2_direct_IO_write()
2033 if (jbd2_journal_start_commit(osb->journal->j_journal, &target)) { in ocfs2_try_to_free_truncate_log()
2034 jbd2_log_wait_commit(osb->journal->j_journal, target); in ocfs2_try_to_free_truncate_log()
Dfile.c181 journal_t *journal = osb->journal->j_journal; in ocfs2_sync_file() local
200 if (journal->j_flags & JBD2_BARRIER && in ocfs2_sync_file()
201 !jbd2_trans_will_send_data_barrier(journal, commit_tid)) in ocfs2_sync_file()
203 err = jbd2_complete_transaction(journal, commit_tid); in ocfs2_sync_file()
2396 ret = jbd2_journal_force_commit(osb->journal->j_journal); in ocfs2_file_write_iter()
Docfs2.h361 struct ocfs2_journal *journal; member
Dioctl.c269 oij.ij_journal_size = i_size_read(osb->journal->j_inode); in ocfs2_info_handle_journal_size()
/linux-4.1.27/include/linux/
Djbd2.h1035 struct buffer_head *jbd2_journal_get_descriptor_buffer(journal_t *journal);
1037 int jbd2_journal_get_log_tail(journal_t *journal, tid_t *tid,
1039 int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1040 void jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1046 void __jbd2_journal_clean_checkpoint_list(journal_t *journal, bool destroy);
1048 void jbd2_journal_destroy_checkpoint(journal_t *journal);
1156 extern int jbd2_journal_load (journal_t *journal);
1158 extern int jbd2_journal_recover (journal_t *journal);
1173 extern int jbd2_journal_begin_ordered_truncate(journal_t *journal,
1176 extern void jbd2_journal_release_jbd_inode(journal_t *journal, struct jbd2_inode *jinode);
[all …]
Djbd.h816 int __journal_clean_checkpoint_list(journal_t *journal);
883 extern int journal_load (journal_t *journal);
885 extern int journal_recover (journal_t *journal);
936 extern void journal_switch_revoke_table(journal_t *journal);
937 extern void journal_clear_buffer_revoked_flags(journal_t *journal);
947 int log_start_commit(journal_t *journal, tid_t tid);
948 int __log_start_commit(journal_t *journal, tid_t tid);
949 int journal_start_commit(journal_t *journal, tid_t *tid);
950 int journal_force_commit_nested(journal_t *journal);
951 int log_wait_commit(journal_t *journal, tid_t tid);
[all …]
/linux-4.1.27/Documentation/filesystems/
Dext3.txt18 the journal (and thus write to the partition) even when
22 journal=update Update the ext3 file system's journal to the current
25 journal=inum When a journal already exists, this option is ignored.
27 will represent the ext3 file system's journal file.
30 journal_dev=devnum When the external journal device's major/minor numbers
32 the new journal location. The journal device is
36 norecovery Don't load the journal on mounting. Note that this forces
40 data=journal All data are committed into the journal prior to being
45 journal.
49 committed to the journal.
[all …]
Dgfs2-uevents.txt20 with no journal assigned), and read-only (with journal assigned) status
39 of journal recovery for one of the filesystems journals. It has
40 two environment variables, JID= which specifies the journal id which
43 for every journal recovered, whether it is during the initial mount
44 process or as the result of gfs_controld requesting a specific journal
89 If a journal is in use by the filesystem (journals are not
91 numeric journal id in all GFS2 uevents.
Dext4.txt75 the filesystem with a large journal can also be helpful for
92 * journal checksumming for robustness, performance
132 replay the journal (and thus write to the
137 journal_checksum Enable checksumming of the journal transactions.
148 journal_dev=devnum When the external journal device's major/minor numbers
150 the new journal location. The journal device is
154 norecovery Don't load the journal on mounting. Note that
156 skipping the journal replay will lead to the
160 data=journal All data are committed into the journal prior to being
167 journal.
[all …]
Dlogfs.txt24 move the journal and change the filesystem parameters through tunefs.
36 the journal.
44 The journal contains all global information about the filesystem that
52 All space except for the superblocks and journal is part of the object
77 reasons is stored in the journal instead. Instead of data blocks, the
88 In LogFS, the block pointer changes are cached in the journal by means
101 content to a spare segment and noting this move in the journal with a
Djfs.txt20 nointegrity Do not write to the journal. The primary use of this option
25 integrity(*) Commit metadata changes to the journal. Use this option to
Docfs2.txt60 journal.
63 committed to the journal.
Dext2.txt246 HAS_JOURNAL feature is a COMPAT flag because the ext3 journal is simply
270 ext3 journal from mounting the filesystem without replaying the journal.
348 to the on-disk ext2 layout. In a nutshell, the journal is a regular
351 it is possible to add a journal to an existing ext2 filesystem without
355 a transaction in the journal and can either be complete or incomplete at
Dxfs.txt57 writes into the journal and for data integrity operations.
154 Use an external log (metadata journal) and/or real-time device.
Dubifs.txt61 journal and recovers from crashes, ensuring that the on-flash data
Dgfs2-glocks.txt21 used only during recovery, and even then only for journal locks.
Dramfs-rootfs-initramfs.txt345 separate journal). They can be out on the network (requiring dhcp, setting a
Dvfs.txt1142 mounting (such as ones controlling the creation of a journal) are exempt
/linux-4.1.27/fs/ext4/
Dfsync.c91 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_sync_file() local
108 if (!journal) { in ext4_sync_file()
138 if (journal->j_flags & JBD2_BARRIER && in ext4_sync_file()
139 !jbd2_trans_will_send_data_barrier(journal, commit_tid)) in ext4_sync_file()
141 ret = jbd2_complete_transaction(journal, commit_tid); in ext4_sync_file()
Dext4_jbd2.c43 journal_t *journal; in ext4_journal_check_start() local
49 journal = EXT4_SB(sb)->s_journal; in ext4_journal_check_start()
55 if (journal && is_journal_aborted(journal)) { in ext4_journal_check_start()
65 journal_t *journal; in __ext4_journal_start_sb() local
73 journal = EXT4_SB(sb)->s_journal; in __ext4_journal_start_sb()
74 if (!journal) in __ext4_journal_start_sb()
76 return jbd2__journal_start(journal, blocks, rsv_blocks, GFP_NOFS, in __ext4_journal_start_sb()
Dsuper.c343 static void ext4_journal_commit_callback(journal_t *journal, transaction_t *txn) in ext4_journal_commit_callback() argument
345 struct super_block *sb = journal->j_private; in ext4_journal_commit_callback()
347 int error = is_journal_aborted(journal); in ext4_journal_commit_callback()
384 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error() local
387 if (journal) in ext4_handle_error()
388 jbd2_journal_abort(journal, -EIO); in ext4_handle_error()
1041 journal_t *journal = EXT4_SB(sb)->s_journal; in bdev_try_to_free_page() local
1046 if (journal) in bdev_try_to_free_page()
1047 return jbd2_journal_try_to_free_buffers(journal, page, in bdev_try_to_free_page()
4363 static void ext4_init_journal_params(struct super_block *sb, journal_t *journal) in ext4_init_journal_params() argument
[all …]
Dinode.c210 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; in ext4_evict_inode() local
213 jbd2_complete_transaction(journal, commit_tid); in ext4_evict_inode()
2908 journal_t *journal; in ext4_bmap() local
2948 journal = EXT4_JOURNAL(inode); in ext4_bmap()
2949 jbd2_journal_lock_updates(journal); in ext4_bmap()
2950 err = jbd2_journal_flush(journal); in ext4_bmap()
2951 jbd2_journal_unlock_updates(journal); in ext4_bmap()
3004 journal_t *journal = EXT4_JOURNAL(page->mapping->host); in __ext4_journalled_invalidatepage() local
3014 return jbd2_journal_invalidatepage(journal, page, offset, length); in __ext4_journalled_invalidatepage()
3027 journal_t *journal = EXT4_JOURNAL(page->mapping->host); in ext4_releasepage() local
[all …]
Dext4_jbd2.h357 static inline int ext4_journal_force_commit(journal_t *journal) in ext4_journal_force_commit() argument
359 if (journal) in ext4_journal_force_commit()
360 return jbd2_journal_force_commit(journal); in ext4_journal_force_commit()
/linux-4.1.27/fs/ext3/
Dsuper.c71 journal_t *journal; in ext3_journal_start_sb() local
79 journal = EXT3_SB(sb)->s_journal; in ext3_journal_start_sb()
80 if (is_journal_aborted(journal)) { in ext3_journal_start_sb()
86 return journal_start(journal, nblocks); in ext3_journal_start_sb()
169 journal_t *journal = EXT3_SB(sb)->s_journal; in ext3_handle_error() local
172 if (journal) in ext3_handle_error()
173 journal_abort(journal, -EIO); in ext3_handle_error()
746 journal_t *journal = EXT3_SB(sb)->s_journal; in bdev_try_to_free_page() local
751 if (journal) in bdev_try_to_free_page()
752 return journal_try_to_free_buffers(journal, page, in bdev_try_to_free_page()
[all …]
Dfsync.c45 journal_t *journal = EXT3_SB(inode->i_sb)->s_journal; in ext3_sync_file() local
89 !journal_trans_will_send_data_barrier(journal, commit_tid)) in ext3_sync_file()
91 log_start_commit(journal, commit_tid); in ext3_sync_file()
92 ret = log_wait_commit(journal, commit_tid); in ext3_sync_file()
DKconfig11 crash. The journal keeps track of any changes that were being made
15 Other than adding the journal to the file system, the on-disk format
21 To add a journal on an existing ext2 file system or change the
36 The journal mode options for ext3 have different tradeoffs
Dinode.c225 journal_t *journal = EXT3_SB(inode->i_sb)->s_journal; in ext3_evict_inode() local
227 log_start_commit(journal, commit_tid); in ext3_evict_inode()
228 log_wait_commit(journal, commit_tid); in ext3_evict_inode()
1509 journal_t *journal; in ext3_bmap() local
1532 journal = EXT3_JOURNAL(inode); in ext3_bmap()
1533 journal_lock_updates(journal); in ext3_bmap()
1534 err = journal_flush(journal); in ext3_bmap()
1535 journal_unlock_updates(journal); in ext3_bmap()
1790 journal_t *journal = EXT3_JOURNAL(page->mapping->host); in ext3_invalidatepage() local
1800 journal_invalidatepage(journal, page, offset, length); in ext3_invalidatepage()
[all …]
Dext3.h1291 static inline int ext3_journal_force_commit(journal_t *journal) in ext3_journal_force_commit() argument
1293 return journal_force_commit(journal); in ext3_journal_force_commit()
/linux-4.1.27/fs/logfs/
DMakefile8 logfs-y += journal.o
/linux-4.1.27/fs/ubifs/
DMakefile3 ubifs-y += shrinker.o journal.o file.o dir.o super.o sb.o io.o
/linux-4.1.27/Documentation/DocBook/
D.filesystems.xml.cmd2 …ymlink.c fs/debugfs/inode.c fs/debugfs/file.c include/linux/jbd.h fs/jbd/journal.c fs/jbd/recovery…
/linux-4.1.27/Documentation/RCU/
DRTFP.txt113 non-blocking synchronization). The corresponding journal article appeared
162 2007 saw the journal version of the award-winning RCU paper from 2006
170 2008 saw a journal paper on real-time RCU [DinakarGuniguntala2008IBMSysJ],
209 academic journal, IEEE Transactions on Parallel and Distributed Systems
226 ,journal="ACM Transactions on Database Systems"
280 ,journal="ACM Transactions on Database Systems"
336 ,journal = {Commun. ACM}
862 ,journal="IBM Systems Journal"
919 ,journal="Linux Journal"
964 ,journal="Linux Journal"
[all …]
/linux-4.1.27/fs/befs/
DChangeLog240 the journal needs to be replayed, and the filesystem cannot be mounted.
/linux-4.1.27/Documentation/isdn/
DREADME.gigaset57 phonebook or call journal.
/linux-4.1.27/Documentation/filesystems/caching/
Dcachefiles.txt43 attempt to journal anything since the journalling interfaces of the various
/linux-4.1.27/Documentation/
Dbcache.txt378 Number of journal entries that are newer than the index.
Dkernel-docs.txt261 ftp://ftp.uk.linux.org/pub/linux/sct/fs/jfs/journal-design.ps.gz
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt2068 Journal - 8192 blocks (18-8209), journal header is in block 8210
2073 journal size 8192 (from 18)
2074 Initializing journal - 0%....20%....40%....60%....80%....100%