Searched refs:journal (Results 1 - 25 of 57) sorted by relevance

123

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jbd/
H A Djournal.c2 * linux/fs/jbd/journal.c
12 * Generic filesystem journal-writing code; part of the ext2fs
19 * We do not actually manage the physical storage of the journal in this
20 * file: that is left to a per-journal policy function, which allows us
21 * to store the journal within a filesystem-specified area for ext2
83 static void __journal_abort_soft (journal_t *journal, int errno);
98 * journal.
103 * filesystem to disk. The journal thread is responsible for writing
114 journal_t *journal = arg; local
121 setup_timer(&journal
210 journal_start_thread(journal_t *journal) argument
222 journal_kill_thread(journal_t *journal) argument
288 journal_t *journal = transaction->t_journal; local
408 __log_space_left(journal_t *journal) argument
432 __log_start_commit(journal_t *journal, tid_t target) argument
453 log_start_commit(journal_t *journal, tid_t tid) argument
473 journal_force_commit_nested(journal_t *journal) argument
501 journal_start_commit(journal_t *journal, tid_t *ptid) argument
532 log_wait_commit(journal_t *journal, tid_t tid) argument
570 journal_trans_will_send_data_barrier(journal_t *journal, tid_t tid) argument
600 journal_next_log_block(journal_t *journal, unsigned int *retp) argument
623 journal_bmap(journal_t *journal, unsigned int blocknr, unsigned int *retp) argument
660 journal_get_descriptor_buffer(journal_t *journal) argument
693 journal_t *journal; local
755 journal_t *journal = journal_init_common(); local
805 journal_t *journal = journal_init_common(); local
864 journal_fail_superblock(journal_t *journal) argument
878 journal_reset(journal_t *journal) argument
918 journal_create(journal_t *journal) argument
989 journal_update_superblock(journal_t *journal, int wait) argument
1044 journal_get_superblock(journal_t *journal) argument
1104 load_superblock(journal_t *journal) argument
1133 journal_load(journal_t *journal) argument
1185 journal_destroy(journal_t *journal) argument
1247 journal_check_used_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1278 journal_check_available_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1311 journal_set_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1342 journal_update_format(journal_t *journal) argument
1364 journal_convert_superblock_v1(journal_t *journal, journal_superblock_t *sb) argument
1399 journal_flush(journal_t *journal) argument
1475 journal_wipe(journal_t *journal, int write) argument
1504 journal_dev_name(journal_t *journal, char *buffer) argument
1529 __journal_abort_hard(journal_t *journal) argument
1550 __journal_abort_soft(journal_t *journal, int errno) argument
1610 journal_abort(journal_t *journal, int errno) argument
1626 journal_errno(journal_t *journal) argument
1646 journal_clear_err(journal_t *journal) argument
1666 journal_ack_err(journal_t *journal) argument
[all...]
H A Dcommit.c48 * Called under journal->j_list_lock. The caller provided us with a ref
98 static int inverted_lock(journal_t *journal, struct buffer_head *bh) argument
101 spin_unlock(&journal->j_list_lock);
110 * mode we can now just skip the rest of the journal write
113 * Returns 1 if the journal needs to be aborted or 0 on success
115 static int journal_write_commit_record(journal_t *journal, argument
123 if (is_journal_aborted(journal))
126 descriptor = journal_get_descriptor_buffer(journal);
140 if (journal->j_flags & JFS_BARRIER) {
155 bdevname(journal
190 journal_submit_data_buffers(journal_t *journal, transaction_t *commit_transaction, int write_op) argument
303 journal_commit_transaction(journal_t *journal) argument
[all...]
H A Drevoke.c20 * transaction's revoked blocks to the journal
37 * need either to cancel the journal entry or to write the revoke
61 * running transaction (is pointed to by journal->j_revoke), the other one
97 journal replay, this involves recording the transaction ID of the
129 static inline int hash(journal_t *journal, unsigned int block) argument
131 struct jbd_revoke_table_s *table = journal->j_revoke;
139 static int insert_revoke_hash(journal_t *journal, unsigned int blocknr, argument
152 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)];
153 spin_lock(&journal
168 find_revoke_record(journal_t *journal, unsigned int blocknr) argument
273 journal_init_revoke(journal_t *journal, int hash_size) argument
299 journal_destroy_revoke(journal_t *journal) argument
339 journal_t *journal; local
429 journal_t *journal = handle->h_transaction->t_journal; local
486 journal_switch_revoke_table(journal_t *journal) argument
503 journal_write_revoke_records(journal_t *journal, transaction_t *transaction, int write_op) argument
544 write_one_revoke_record(journal_t *journal, transaction_t *transaction, struct journal_head **descriptorp, int *offsetp, struct jbd_revoke_record_s *record, int write_op) argument
603 flush_descriptor(journal_t *journal, struct journal_head *descriptor, int offset, int write_op) argument
646 journal_set_revoke(journal_t *journal, unsigned int blocknr, tid_t sequence) argument
670 journal_test_revoke(journal_t *journal, unsigned int blocknr, tid_t sequence) argument
689 journal_clear_revoke(journal_t *journal) argument
[all...]
H A Drecovery.c40 static int do_one_pass(journal_t *journal,
56 * When reading from the journal, we are going through the block device
68 static int do_readahead(journal_t *journal, unsigned int start) argument
78 max = start + (128 * 1024 / journal->j_blocksize);
79 if (max > journal->j_maxlen)
80 max = journal->j_maxlen;
88 err = journal_bmap(journal, next, &blocknr);
96 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize);
127 * Read a block from the journal
130 jread(struct buffer_head **bhp, journal_t *journal, unsigned int offset) argument
223 journal_recover(journal_t *journal) argument
283 journal_skip_recovery(journal_t *journal) argument
310 do_one_pass(journal_t *journal, struct recovery_info *info, enum passtype pass) argument
565 scan_revoke_records(journal_t *journal, struct buffer_head *bh, tid_t sequence, struct recovery_info *info) argument
[all...]
H A Dcheckpoint.c111 * __log_wait_for_space: wait until there is space in the journal.
116 void __log_wait_for_space(journal_t *journal) argument
119 assert_spin_locked(&journal->j_state_lock);
121 nblocks = jbd_space_needed(journal);
122 while (__log_space_left(journal) < nblocks) {
123 if (journal->j_flags & JFS_ABORT)
125 spin_unlock(&journal->j_state_lock);
126 mutex_lock(&journal->j_checkpoint_mutex);
132 * journal space by calling cleanup_journal_tail(), and if
136 * filesystem, so abort the journal an
201 __wait_cp_io(journal_t *journal, transaction_t *transaction) argument
253 __flush_batch(journal_t *journal, struct buffer_head **bhs, int *batch_count) argument
279 __process_buffer(journal_t *journal, struct journal_head *jh, struct buffer_head **bhs, int *batch_count) argument
347 log_do_checkpoint(journal_t *journal) argument
457 cleanup_journal_tail(journal_t *journal) argument
581 __journal_clean_checkpoint_list(journal_t *journal) argument
644 journal_t *journal; local
729 __journal_drop_transaction(journal_t *journal, transaction_t *transaction) argument
[all...]
H A Dtransaction.c36 * RUNNING state and add it to the current journal (which should not
41 * The journal MUST be locked. We don't perform atomic mallocs on the
43 * processes trying to touch the journal while it is in transition.
49 get_transaction(journal_t *journal, transaction_t *transaction) argument
51 transaction->t_journal = journal;
54 transaction->t_tid = journal->j_transaction_sequence++;
55 transaction->t_expires = jiffies + journal->j_commit_interval;
59 journal->j_commit_timer.expires =
61 add_timer(&journal->j_commit_timer);
63 J_ASSERT(journal
84 start_this_handle(journal_t *journal, handle_t *handle) argument
271 journal_start(journal_t *journal, int nblocks) argument
325 journal_t *journal = transaction->t_journal; local
391 journal_t *journal = transaction->t_journal; local
436 journal_lock_updates(journal_t *journal) argument
482 journal_unlock_updates(journal_t *journal) argument
520 journal_t *journal; local
784 journal_t *journal = transaction->t_journal; local
947 journal_t *journal = handle->h_transaction->t_journal; local
1139 journal_t *journal = transaction->t_journal; local
1237 journal_t *journal = transaction->t_journal; local
1366 journal_t *journal = transaction->t_journal; local
1496 journal_force_commit(journal_t *journal) argument
1632 journal_unfile_buffer(journal_t *journal, struct journal_head *jh) argument
1647 __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh) argument
1720 journal_try_to_free_buffers(journal_t *journal, struct page *page, gfp_t gfp_mask) argument
1841 journal_unmap_buffer(journal_t *journal, struct buffer_head *bh) argument
1997 journal_invalidatepage(journal_t *journal, struct page *page, unsigned long offset) argument
2186 journal_refile_buffer(journal_t *journal, struct journal_head *jh) argument
[all...]
H A DMakefile7 jbd-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/hfsplus_journal/
H A Djbd_journal.c2 * linux/fs/journal.c
12 * Generic filesystem journal-writing code; part of the ext2fs
19 * We do not actually manage the physical storage of the journal in this
20 * file: that is left to a per-journal policy function, which allows us
21 * to store the journal within a filesystem-specified area for ext2
85 static void __hfsplus_jbd_abort_soft (hfsplus_jbd_t *journal, int errno);
100 * journal.
105 * filesystem to disk. The journal thread is responsible for writing
116 hfsplus_jbd_t *journal = (hfsplus_jbd_t *) arg; local
127 journal
215 hfsplus_jbd_start_thread(hfsplus_jbd_t *journal) argument
221 hfsplus_jbd_kill_thread(hfsplus_jbd_t *journal) argument
405 __hfsplus__log_space_left(hfsplus_jbd_t *journal) argument
429 __hfsplus__log_start_commit(hfsplus_jbd_t *journal, hfsplus_jbd_tid_t target) argument
450 hfsplus_log_start_commit(hfsplus_jbd_t *journal, hfsplus_jbd_tid_t tid) argument
470 hfsplus_jbd_force_commit_nested(hfsplus_jbd_t *journal) argument
497 hfsplus_jbd_start_commit(hfsplus_jbd_t *journal, hfsplus_jbd_tid_t *ptid) argument
524 hfsplus_jbd_log_wait_commit(hfsplus_jbd_t *journal, hfsplus_jbd_tid_t tid) argument
560 hfsplus_jbd_next_log_block(hfsplus_jbd_t *journal, unsigned long *retp) argument
583 hfsplus_jbd_bmap(hfsplus_jbd_t *journal, unsigned long blocknr, unsigned long *retp) argument
620 hfsplus_jbd_get_descriptor_buffer(hfsplus_jbd_t *journal) argument
651 hfsplus_jbd_t *journal; local
713 hfsplus_jbd_t *journal = hfsplus_jbd_init_common(); local
756 hfsplus_jbd_t *journal = hfsplus_jbd_init_common(); local
808 hfsplus_jbd_fail_superblock(hfsplus_jbd_t *journal) argument
822 hfsplus_jbd_reset(hfsplus_jbd_t *journal) argument
857 hfsplus_jbd_create(hfsplus_jbd_t *journal) argument
928 hfsplus_jbd_update_superblock(hfsplus_jbd_t *journal, int wait) argument
984 hfsplus_jbd_get_superblock(hfsplus_jbd_t *journal) argument
1044 load_superblock(hfsplus_jbd_t *journal) argument
1073 hfsplus_jbd_load(hfsplus_jbd_t *journal) argument
1124 hfsplus_jbd_destroy(hfsplus_jbd_t *journal) argument
1179 hfsplus_jbd_check_used_features(hfsplus_jbd_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1210 hfsplus_jbd_check_available_features(hfsplus_jbd_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1247 hfsplus_jbd_set_features(hfsplus_jbd_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1278 hfsplus_jbd_update_format(hfsplus_jbd_t *journal) argument
1300 hfsplus_jbd_convert_superblock_v1(hfsplus_jbd_t *journal, hfsplus_jbd_superblock_t *sb) argument
1335 hfsplus_jbd_flush(hfsplus_jbd_t *journal) argument
1405 hfsplus_jbd_wipe(hfsplus_jbd_t *journal, int write) argument
1437 hfsplus_jbd_dev_name(hfsplus_jbd_t *journal, char *buffer) argument
1462 __hfsplus_jbd_abort_hard(hfsplus_jbd_t *journal) argument
1483 __hfsplus_jbd_abort_soft(hfsplus_jbd_t *journal, int errno) argument
1543 hfsplus_jbd_abort(hfsplus_jbd_t *journal, int errno) argument
1559 hfsplus_jbd_errno(hfsplus_jbd_t *journal) argument
1579 hfsplus_jbd_clear_err(hfsplus_jbd_t *journal) argument
1599 hfsplus_jbd_ack_err(hfsplus_jbd_t *journal) argument
[all...]
H A Drevoke.c20 * transaction's revoked blocks to the journal
37 * need either to cancel the journal entry or to write the revoke
73 journal replay, this involves recording the transaction ID of the
105 static inline int hash(hfsplus_jbd_t *journal, unsigned long block) argument
107 struct hfsplus_jbd_revoke_table_s *table = journal->j_revoke;
115 static int insert_revoke_hash(hfsplus_jbd_t *journal, unsigned long blocknr, argument
128 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)];
129 spin_lock(&journal->j_revoke_lock);
131 spin_unlock(&journal
144 find_revoke_record(hfsplus_jbd_t *journal, unsigned long blocknr) argument
194 hfsplus_jbd_init_revoke(hfsplus_jbd_t *journal, int hash_size) argument
264 hfsplus_jbd_destroy_revoke(hfsplus_jbd_t *journal) argument
328 hfsplus_jbd_t *journal; local
420 hfsplus_jbd_t *journal = handle->h_transaction->t_journal; local
477 hfsplus_jbd_switch_revoke_table(hfsplus_jbd_t *journal) argument
497 hfsplus_jbd_write_revoke_records(hfsplus_jbd_t *journal, hfsplus_transaction_t *transaction) argument
538 write_one_revoke_record(hfsplus_jbd_t *journal, hfsplus_transaction_t *transaction, struct hfsplus_jbd_head **descriptorp, int *offsetp, struct hfsplus_jbd_revoke_record_s *record) argument
597 flush_descriptor(hfsplus_jbd_t *journal, struct hfsplus_jbd_head *descriptor, int offset) argument
640 hfsplus_jbd_set_revoke(hfsplus_jbd_t *journal, unsigned long blocknr, hfsplus_jbd_tid_t sequence) argument
664 hfsplus_jbd_test_revoke(hfsplus_jbd_t *journal, unsigned long blocknr, hfsplus_jbd_tid_t sequence) argument
683 hfsplus_jbd_clear_revoke(hfsplus_jbd_t *journal) argument
[all...]
H A Dcheckpoint.c74 * __hfsplus__log_wait_for_space: wait until there is space in the journal.
79 void __hfsplus__log_wait_for_space(hfsplus_jbd_t *journal) argument
82 assert_spin_locked(&journal->j_state_lock);
84 nblocks = hfsplus_jbd_space_needed(journal);
85 while (__hfsplus__log_space_left(journal) < nblocks) {
86 if (journal->j_flags & JFS_ABORT)
88 spin_unlock(&journal->j_state_lock);
89 down(&journal->j_checkpoint_sem);
95 spin_lock(&journal->j_state_lock);
96 nblocks = hfsplus_jbd_space_needed(journal);
111 jbd_sync_bh(hfsplus_jbd_t *journal, struct buffer_head *bh) argument
132 __cleanup_transaction(hfsplus_jbd_t *journal, hfsplus_transaction_t *transaction) argument
203 __flush_batch(hfsplus_jbd_t *journal, struct buffer_head **bhs, int *batch_count) argument
228 __flush_buffer(hfsplus_jbd_t *journal, struct hfsplus_jbd_head *jh, struct buffer_head **bhs, int *batch_count, int *drop_count) argument
284 hfsplus_jbd_log_do_checkpoint(hfsplus_jbd_t *journal) argument
396 cleanup_hfsplus_jbd_tail(hfsplus_jbd_t *journal) argument
473 __hfsplus_jbd_clean_checkpoint_list(hfsplus_jbd_t *journal) argument
535 hfsplus_jbd_t *journal; local
615 __hfsplus_jbd_drop_transaction(hfsplus_jbd_t *journal, hfsplus_transaction_t *transaction) argument
[all...]
H A Drecovery.c37 static int do_one_pass(hfsplus_jbd_t *journal,
53 * When reading from the journal, we are going through the block device
65 static int do_readahead(hfsplus_jbd_t *journal, unsigned int start) argument
75 max = start + (128 * 1024 / journal->j_blocksize);
76 if (max > journal->j_maxlen)
77 max = journal->j_maxlen;
85 err = hfsplus_jbd_bmap(journal, next, &blocknr);
93 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize);
124 * Read a block from the journal
127 jread(struct buffer_head **bhp, hfsplus_jbd_t *journal, unsigned int offset) argument
220 hfsplus_jbd_recover(hfsplus_jbd_t *journal) argument
277 hfsplus_jbd_skip_recovery(hfsplus_jbd_t *journal) argument
304 do_one_pass(hfsplus_jbd_t *journal, struct recovery_info *info, enum passtype pass) argument
565 scan_revoke_records(hfsplus_jbd_t *journal, struct buffer_head *bh, hfsplus_jbd_tid_t sequence, struct recovery_info *info) argument
[all...]
H A Dcommit.c102 static int inverted_lock(hfsplus_jbd_t *journal, struct buffer_head *bh) argument
105 spin_unlock(&journal->j_list_lock);
114 * mode we can now just skip the rest of the journal write
117 * Returns 1 if the journal needs to be aborted or 0 on success
119 static int hfsplus_jbd_write_commit_record(hfsplus_jbd_t *journal, argument
132 if (is_hfsplus_jbd_aborted(journal))
135 descriptor = hfsplus_jbd_get_descriptor_buffer(journal);
151 if (journal->j_flags & JFS_BARRIER) {
169 bdevname(journal->j_dev, b));
170 spin_lock(&journal
209 hfsplus_jbd_commit_transaction(hfsplus_jbd_t *journal) argument
[all...]
H A Dtransaction.c34 * RUNNING state and add it to the current journal (which should not
39 * The journal MUST be locked. We don't perform atomic mallocs on the
41 * processes trying to touch the journal while it is in transition.
47 get_transaction(hfsplus_jbd_t *journal, hfsplus_transaction_t *transaction) argument
49 transaction->t_journal = journal;
51 transaction->t_tid = journal->j_transaction_sequence++;
52 transaction->t_expires = jiffies + journal->j_commit_interval;
56 journal->j_commit_timer->expires = transaction->t_expires;
57 add_timer(journal->j_commit_timer);
59 HFSPLUS_J_ASSERT(journal
80 start_this_handle(hfsplus_jbd_t *journal, hfsplus_jbd_handle_t *handle) argument
261 hfsplus_jbd_start(hfsplus_jbd_t *journal, int nblocks, hfsplus_handle_t *hfsplus_handle) argument
313 hfsplus_jbd_t *journal = transaction->t_journal; local
379 hfsplus_jbd_t *journal = transaction->t_journal; local
425 hfsplus_jbd_lock_updates(hfsplus_jbd_t *journal) argument
471 hfsplus_jbd_unlock_updates(hfsplus_jbd_t *journal) argument
528 hfsplus_jbd_t *journal; local
783 hfsplus_jbd_t *journal = transaction->t_journal; local
929 hfsplus_jbd_t *journal = handle->h_transaction->t_journal; local
1099 hfsplus_jbd_t *journal = transaction->t_journal; local
1201 hfsplus_jbd_t *journal = transaction->t_journal; local
1315 hfsplus_jbd_t *journal = transaction->t_journal; local
1407 hfsplus_jbd_force_commit(hfsplus_jbd_t *journal) argument
1543 hfsplus_jbd_unfile_buffer(hfsplus_jbd_t *journal, struct hfsplus_jbd_head *jh) argument
1558 __hfsplus_jbd_try_to_free_buffer(hfsplus_jbd_t *journal, struct buffer_head *bh) argument
1628 hfsplus_jbd_try_to_free_buffers(hfsplus_jbd_t *journal, struct page *page, gfp_t unused_gfp_mask) argument
1742 hfsplus_jbd_unmap_buffer(hfsplus_jbd_t *journal, struct buffer_head *bh) argument
1885 hfsplus_jbd_invalidatepage(hfsplus_jbd_t *journal, struct page *page, unsigned long offset) argument
2065 hfsplus_jbd_refile_buffer(hfsplus_jbd_t *journal, struct hfsplus_jbd_head *jh) argument
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/jbd2/
H A Djournal.c2 * linux/fs/jbd2/journal.c
12 * Generic filesystem journal-writing code; part of the ext2fs
19 * We do not actually manage the physical storage of the journal in this
20 * file: that is left to a per-journal policy function, which allows us
21 * to store the journal within a filesystem-specified area for ext2
93 static void __journal_abort_soft (journal_t *journal, int errno);
109 * journal.
114 * filesystem to disk. The journal thread is responsible for writing
125 journal_t *journal = arg; local
132 setup_timer(&journal
218 jbd2_journal_start_thread(journal_t *journal) argument
231 journal_kill_thread(journal_t *journal) argument
296 journal_t *journal = transaction->t_journal; local
447 __jbd2_log_space_left(journal_t *journal) argument
471 __jbd2_log_start_commit(journal_t *journal, tid_t target) argument
492 jbd2_log_start_commit(journal_t *journal, tid_t tid) argument
512 jbd2_journal_force_commit_nested(journal_t *journal) argument
540 jbd2_journal_start_commit(journal_t *journal, tid_t *ptid) argument
571 jbd2_log_wait_commit(journal_t *journal, tid_t tid) argument
605 jbd2_journal_next_log_block(journal_t *journal, unsigned long long *retp) argument
628 jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, unsigned long long *retp) argument
661 jbd2_journal_get_descriptor_buffer(journal_t *journal) argument
684 journal_t *journal; member in struct:jbd2_stats_proc_session
745 journal_t *journal = PDE(inode)->data; local
794 jbd2_stats_proc_init(journal_t *journal) argument
803 jbd2_stats_proc_exit(journal_t *journal) argument
820 journal_t *journal; local
887 journal_t *journal = journal_init_common(); local
944 journal_t *journal = journal_init_common(); local
1012 journal_fail_superblock(journal_t *journal) argument
1026 journal_reset(journal_t *journal) argument
1066 jbd2_journal_update_superblock(journal_t *journal, int wait) argument
1144 journal_get_superblock(journal_t *journal) argument
1204 load_superblock(journal_t *journal) argument
1233 jbd2_journal_load(journal_t *journal) argument
1299 jbd2_journal_destroy(journal_t *journal) argument
1364 jbd2_journal_check_used_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1395 jbd2_journal_check_available_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1428 jbd2_journal_set_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1462 jbd2_journal_clear_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1485 jbd2_journal_update_format(journal_t *journal) argument
1507 journal_convert_superblock_v1(journal_t *journal, journal_superblock_t *sb) argument
1542 jbd2_journal_flush(journal_t *journal) argument
1618 jbd2_journal_wipe(journal_t *journal, int write) argument
1655 __jbd2_journal_abort_hard(journal_t *journal) argument
1675 __journal_abort_soft(journal_t *journal, int errno) argument
1735 jbd2_journal_abort(journal_t *journal, int errno) argument
1751 jbd2_journal_errno(journal_t *journal) argument
1771 jbd2_journal_clear_err(journal_t *journal) argument
1791 jbd2_journal_ack_err(journal_t *journal) argument
1807 journal_tag_bytes(journal_t *journal) argument
2162 jbd2_journal_release_jbd_inode(journal_t *journal, struct jbd2_inode *jinode) argument
[all...]
H A Dcheckpoint.c113 * __jbd2_log_wait_for_space: wait until there is space in the journal.
118 void __jbd2_log_wait_for_space(journal_t *journal) argument
121 /* assert_spin_locked(&journal->j_state_lock); */
123 nblocks = jbd_space_needed(journal);
124 while (__jbd2_log_space_left(journal) < nblocks) {
125 if (journal->j_flags & JBD2_ABORT)
127 write_unlock(&journal->j_state_lock);
128 mutex_lock(&journal->j_checkpoint_mutex);
134 * journal space by calling cleanup_journal_tail(), and if
138 * filesystem, so abort the journal an
204 __wait_cp_io(journal_t *journal, transaction_t *transaction) argument
254 __flush_batch(journal_t *journal, int *batch_count) argument
280 __process_buffer(journal_t *journal, struct journal_head *jh, int *batch_count, transaction_t *transaction) argument
350 jbd2_log_do_checkpoint(journal_t *journal) argument
463 jbd2_cleanup_journal_tail(journal_t *journal) argument
603 __jbd2_journal_clean_checkpoint_list(journal_t *journal) argument
667 journal_t *journal; local
759 __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transaction) argument
[all...]
H A Drevoke.c20 * transaction's revoked blocks to the journal
37 * need either to cancel the journal entry or to write the revoke
61 * running transaction (is pointed to by journal->j_revoke), the other one
97 journal replay, this involves recording the transaction ID of the
129 static inline int hash(journal_t *journal, unsigned long long block) argument
131 struct jbd2_revoke_table_s *table = journal->j_revoke;
140 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, argument
153 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)];
154 spin_lock(&journal
169 find_revoke_record(journal_t *journal, unsigned long long blocknr) argument
272 jbd2_journal_init_revoke(journal_t *journal, int hash_size) argument
298 jbd2_journal_destroy_revoke(journal_t *journal) argument
338 journal_t *journal; local
428 journal_t *journal = handle->h_transaction->t_journal; local
485 jbd2_journal_switch_revoke_table(journal_t *journal) argument
502 jbd2_journal_write_revoke_records(journal_t *journal, transaction_t *transaction, int write_op) argument
544 write_one_revoke_record(journal_t *journal, transaction_t *transaction, struct journal_head **descriptorp, int *offsetp, struct jbd2_revoke_record_s *record, int write_op) argument
611 flush_descriptor(journal_t *journal, struct journal_head *descriptor, int offset, int write_op) argument
654 jbd2_journal_set_revoke(journal_t *journal, unsigned long long blocknr, tid_t sequence) argument
678 jbd2_journal_test_revoke(journal_t *journal, unsigned long long blocknr, tid_t sequence) argument
697 jbd2_journal_clear_revoke(journal_t *journal) argument
[all...]
H A Drecovery.c41 static int do_one_pass(journal_t *journal,
57 * When reading from the journal, we are going through the block device
69 static int do_readahead(journal_t *journal, unsigned int start) argument
79 max = start + (128 * 1024 / journal->j_blocksize);
80 if (max > journal->j_maxlen)
81 max = journal->j_maxlen;
89 err = jbd2_journal_bmap(journal, next, &blocknr);
97 bh = __getblk(journal->j_dev, blocknr, journal->j_blocksize);
128 * Read a block from the journal
131 jread(struct buffer_head **bhp, journal_t *journal, unsigned int offset) argument
181 count_tags(journal_t *journal, struct buffer_head *bh) argument
225 jbd2_journal_recover(journal_t *journal) argument
285 jbd2_journal_skip_recovery(journal_t *journal) argument
325 calc_chksums(journal_t *journal, struct buffer_head *bh, unsigned long *next_log_block, __u32 *crc32_sum) argument
353 do_one_pass(journal_t *journal, struct recovery_info *info, enum passtype pass) argument
709 scan_revoke_records(journal_t *journal, struct buffer_head *bh, tid_t sequence, struct recovery_info *info) argument
[all...]
H A Dcommit.c90 * mode we can now just skip the rest of the journal write
93 * Returns 1 if the journal needs to be aborted or 0 on success
95 static int journal_submit_commit_record(journal_t *journal, argument
106 if (is_journal_aborted(journal))
109 descriptor = jbd2_journal_get_descriptor_buffer(journal);
122 if (JBD2_HAS_COMPAT_FEATURE(journal,
135 if (journal->j_flags & JBD2_BARRIER &&
136 !JBD2_HAS_INCOMPAT_FEATURE(journal,
142 "not supported by device\n", journal->j_devname);
143 write_lock(&journal
164 journal_wait_on_commit_record(journal_t *journal, struct buffer_head *bh) argument
229 journal_submit_data_buffers(journal_t *journal, transaction_t *commit_transaction) argument
266 journal_finish_inode_data_buffers(journal_t *journal, transaction_t *commit_transaction) argument
341 jbd2_journal_commit_transaction(journal_t *journal) argument
[all...]
H A Dtransaction.c38 * RUNNING state and add it to the current journal (which should not
43 * The journal MUST be locked. We don't perform atomic mallocs on the
45 * processes trying to touch the journal while it is in transition.
50 jbd2_get_transaction(journal_t *journal, transaction_t *transaction) argument
52 transaction->t_journal = journal;
55 transaction->t_tid = journal->j_transaction_sequence++;
56 transaction->t_expires = jiffies + journal->j_commit_interval;
65 journal->j_commit_timer.expires = round_jiffies_up(transaction->t_expires);
66 add_timer(&journal->j_commit_timer);
68 J_ASSERT(journal
117 start_this_handle(journal_t *journal, handle_t *handle, int gfp_mask) argument
317 jbd2__journal_start(journal_t *journal, int nblocks, int gfp_mask) argument
350 jbd2_journal_start(journal_t *journal, int nblocks) argument
380 journal_t *journal = transaction->t_journal; local
445 journal_t *journal = transaction->t_journal; local
496 jbd2_journal_lock_updates(journal_t *journal) argument
542 jbd2_journal_unlock_updates(journal_t *journal) argument
580 journal_t *journal; local
854 journal_t *journal = transaction->t_journal; local
1063 journal_t *journal = transaction->t_journal; local
1161 journal_t *journal = transaction->t_journal; local
1290 journal_t *journal = transaction->t_journal; local
1428 jbd2_journal_force_commit(journal_t *journal) argument
1558 jbd2_journal_unfile_buffer(journal_t *journal, struct journal_head *jh) argument
1573 __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh) argument
1638 jbd2_journal_try_to_free_buffers(journal_t *journal, struct page *page, gfp_t gfp_mask) argument
1760 journal_unmap_buffer(journal_t *journal, struct buffer_head *bh) argument
1909 jbd2_journal_invalidatepage(journal_t *journal, struct page *page, unsigned long offset) argument
2092 jbd2_journal_refile_buffer(journal_t *journal, struct journal_head *jh) argument
2113 journal_t *journal = transaction->t_journal; local
2183 jbd2_journal_begin_ordered_truncate(journal_t *journal, struct jbd2_inode *jinode, loff_t new_size) argument
[all...]
H A DMakefile7 jbd2-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/reiserfs/
H A Djournal.c82 /* journal list state bits */
103 struct reiserfs_journal *journal);
111 JBEGIN_REG = 0, /* regular journal begin */
122 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
123 memset(journal->j_hash_table, 0,
170 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
172 struct list_head *entry = journal->j_bitmap_nodes.next;
174 journal->j_used_bitmap_nodes++;
177 if (entry != &journal->j_bitmap_nodes) {
181 journal
194 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
208 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
270 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
327 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
385 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
412 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
474 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
591 struct reiserfs_journal *journal = SB_JOURNAL(s); local
921 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1011 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1258 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
1296 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
1367 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
1393 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1419 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1793 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1860 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1937 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
1963 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
2163 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
2408 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
2613 release_journal_dev(struct super_block *super, struct reiserfs_journal *journal) argument
2634 journal_init_dev(struct super_block *super, struct reiserfs_journal *journal, const char *jdev_name) argument
2709 check_advise_trans_params(struct super_block *sb, struct reiserfs_journal *journal) argument
2762 struct reiserfs_journal *journal; local
2973 struct reiserfs_journal *journal = SB_JOURNAL(th->t_super); local
2997 struct reiserfs_journal *journal = SB_JOURNAL(th->t_super); local
3009 struct reiserfs_journal *journal = SB_JOURNAL(s); local
3019 struct reiserfs_journal *journal = SB_JOURNAL(s); local
3027 struct reiserfs_journal *journal = SB_JOURNAL(s); local
3048 struct reiserfs_journal *journal = SB_JOURNAL(s); local
3055 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3087 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3326 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3471 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3562 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3580 struct reiserfs_journal *journal = local
3604 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3658 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3767 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3846 struct reiserfs_journal *journal = SB_JOURNAL(inode->i_sb); local
3860 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3932 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3980 struct reiserfs_journal *journal = SB_JOURNAL(s); local
4013 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
4379 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext4/
H A Dfsync.c78 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal; local
93 if (!journal) {
103 * Metadata is in the journal, we wait for proper transaction to
106 * data=journal:
108 * ext4_force_commit will write the file data into the journal and
112 * safe in-journal, which is all fsync() needs to ensure.
118 if (jbd2_log_start_commit(journal, commit_tid)) {
120 * When the journal is on a different device than the
124 * data=journal, all of the data blocks are written to
125 * the journal devic
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/trace/events/
H A 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_transactio
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/
H A Djournal.c4 * journal.c
46 #include "journal.h"
73 static void ocfs2_queue_recovery_completion(struct ocfs2_journal *journal,
164 ocfs2_queue_recovery_completion(osb->journal, i, NULL,
302 struct ocfs2_journal *journal = NULL; local
306 journal = osb->journal;
308 /* Flush all pending commits and checkpoint the journal. */
309 down_write(&journal->j_trans_barrier);
311 if (atomic_read(&journal
347 journal_t *journal = osb->journal->j_journal; local
386 struct ocfs2_journal *journal = osb->journal; local
754 journal_t *journal = osb->journal->j_journal; local
769 ocfs2_journal_init(struct ocfs2_journal *journal, int *dirty) argument
882 struct ocfs2_journal *journal = osb->journal; local
920 struct ocfs2_journal *journal = NULL; local
1005 ocfs2_clear_journal_error(struct super_block *sb, journal_t *journal, int slot) argument
1023 ocfs2_journal_load(struct ocfs2_journal *journal, int local, int replayed) argument
1070 ocfs2_journal_wipe(struct ocfs2_journal *journal, int full) argument
1190 struct ocfs2_journal *journal = local
1263 ocfs2_queue_recovery_completion(struct ocfs2_journal *journal, int slot_num, struct ocfs2_dinode *la_dinode, struct ocfs2_dinode *tl_dinode, struct ocfs2_quota_recovery *qrec) argument
1305 struct ocfs2_journal *journal = osb->journal; local
1543 journal_t *journal = NULL; local
2182 struct ocfs2_journal *journal = osb->journal; local
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext3/
H A Dfsync.c50 journal_t *journal = EXT3_SB(inode->i_sb)->s_journal; local
62 * Metadata is in the journal, we wait for a proper transaction
65 * data=journal:
67 * ext3_force_commit will write the file data into the journal and
71 * safe in-journal, which is all fsync() needs to ensure.
82 !journal_trans_will_send_data_barrier(journal, commit_tid))
84 log_start_commit(journal, commit_tid);
85 ret = log_wait_commit(journal, commit_tid);

Completed in 301 milliseconds

123