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

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/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.c87 static int inverted_lock(hfsplus_jbd_t *journal, struct buffer_head *bh) argument
90 spin_unlock(&journal->j_list_lock);
99 * mode we can now just skip the rest of the journal write
102 * Returns 1 if the journal needs to be aborted or 0 on success
104 static int hfsplus_jbd_write_commit_record(hfsplus_jbd_t *journal, argument
117 if (is_hfsplus_jbd_aborted(journal))
120 descriptor = hfsplus_jbd_get_descriptor_buffer(journal);
136 if (journal->j_flags & JFS_BARRIER) {
152 bdevname(journal->j_dev, b));
153 spin_lock(&journal
192 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...]
H A Djournal.c2 * HFSPlus journal implementation Tathagata Das 2010
128 printk(KERN_ERR "HFS+-fs: %s() unable to get journal write access\n", err_fn);
165 hfsplus_jbd_t *journal; local
171 journal = HFSPLUS_SB(sb).jnl.s_journal;
173 ret = hfsplus_jbd_force_commit(journal);
179 hfsplus_jbd_t *journal = HFSPLUS_SB(sb).jnl.s_journal; local
182 if ((hfsplus_handle->journaled != HFSPLUS_JOURNAL_PRESENT) || (journal == NULL)) {
188 if (is_hfsplus_jbd_aborted(journal)) {
189 hfsplus_abort(sb, __FUNCTION__, "Detected aborted journal");
195 hfsplus_handle->handle = hfsplus_jbd_start(journal, HFSPLUS_S
214 hfsplus_journal_superblock_init(hfsplus_jbd_t *journal, int start) argument
271 hfsplus_jbd_t *journal = NULL; local
438 hfsplus_jhdr_checksum_calculate(hfsplus_jbd_t *journal) argument
446 hfsplus_journal_header_start_update(hfsplus_jbd_t *journal, unsigned long freed) argument
463 hfsplus_journal_header_end_update(hfsplus_jbd_t *journal, struct hfsplus_journal_header *jh) argument
470 hfsplus_journal_mark_journal_empty(hfsplus_jbd_t *journal) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/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
82 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 jbd2_journal_start_thread(journal_t *journal) argument
222 journal_kill_thread(journal_t *journal) argument
405 __jbd2_log_space_left(journal_t *journal) argument
429 __jbd2_log_start_commit(journal_t *journal, tid_t target) argument
450 jbd2_log_start_commit(journal_t *journal, tid_t tid) argument
470 jbd2_journal_force_commit_nested(journal_t *journal) argument
497 jbd2_journal_start_commit(journal_t *journal, tid_t *ptid) argument
524 jbd2_log_wait_commit(journal_t *journal, tid_t tid) argument
560 jbd2_journal_next_log_block(journal_t *journal, unsigned long long *retp) argument
583 jbd2_journal_bmap(journal_t *journal, unsigned long blocknr, unsigned long long *retp) argument
620 jbd2_journal_get_descriptor_buffer(journal_t *journal) argument
651 journal_t *journal; local
713 journal_t *journal = journal_init_common(); local
756 journal_t *journal = journal_init_common(); local
808 journal_fail_superblock(journal_t *journal) argument
822 journal_reset(journal_t *journal) argument
856 jbd2_journal_create(journal_t *journal) argument
927 jbd2_journal_update_superblock(journal_t *journal, int wait) argument
982 journal_get_superblock(journal_t *journal) argument
1042 load_superblock(journal_t *journal) argument
1071 jbd2_journal_load(journal_t *journal) argument
1129 jbd2_journal_destroy(journal_t *journal) argument
1181 jbd2_journal_check_used_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1212 jbd2_journal_check_available_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1249 jbd2_journal_set_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1280 jbd2_journal_update_format(journal_t *journal) argument
1302 journal_convert_superblock_v1(journal_t *journal, journal_superblock_t *sb) argument
1337 jbd2_journal_flush(journal_t *journal) argument
1407 jbd2_journal_wipe(journal_t *journal, int write) argument
1439 journal_dev_name(journal_t *journal, char *buffer) argument
1464 __jbd2_journal_abort_hard(journal_t *journal) argument
1485 __journal_abort_soft(journal_t *journal, int errno) argument
1545 jbd2_journal_abort(journal_t *journal, int errno) argument
1561 jbd2_journal_errno(journal_t *journal) argument
1581 jbd2_journal_clear_err(journal_t *journal) argument
1601 jbd2_journal_ack_err(journal_t *journal) argument
1617 journal_tag_bytes(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
76 journal replay, this involves recording the transaction ID of the
108 static inline int hash(journal_t *journal, unsigned long long block) argument
110 struct jbd2_revoke_table_s *table = journal->j_revoke;
119 static int insert_revoke_hash(journal_t *journal, unsigned long long blocknr, argument
132 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)];
133 spin_lock(&journal->j_revoke_lock);
135 spin_unlock(&journal
148 find_revoke_record(journal_t *journal, unsigned long long blocknr) argument
198 jbd2_journal_init_revoke(journal_t *journal, int hash_size) argument
268 jbd2_journal_destroy_revoke(journal_t *journal) argument
332 journal_t *journal; local
424 journal_t *journal = handle->h_transaction->t_journal; local
481 jbd2_journal_switch_revoke_table(journal_t *journal) argument
501 jbd2_journal_write_revoke_records(journal_t *journal, transaction_t *transaction) argument
542 write_one_revoke_record(journal_t *journal, transaction_t *transaction, struct journal_head **descriptorp, int *offsetp, struct jbd2_revoke_record_s *record) argument
608 flush_descriptor(journal_t *journal, struct journal_head *descriptor, int offset) argument
651 jbd2_journal_set_revoke(journal_t *journal, unsigned long long blocknr, tid_t sequence) argument
675 jbd2_journal_test_revoke(journal_t *journal, unsigned long long blocknr, tid_t sequence) argument
694 jbd2_journal_clear_revoke(journal_t *journal) argument
[all...]
H A Dcheckpoint.c110 * __jbd2_log_wait_for_space: wait until there is space in the journal.
115 void __jbd2_log_wait_for_space(journal_t *journal) argument
118 assert_spin_locked(&journal->j_state_lock);
120 nblocks = jbd_space_needed(journal);
121 while (__jbd2_log_space_left(journal) < nblocks) {
122 if (journal->j_flags & JBD2_ABORT)
124 spin_unlock(&journal->j_state_lock);
125 mutex_lock(&journal->j_checkpoint_mutex);
131 spin_lock(&journal->j_state_lock);
132 nblocks = jbd_space_needed(journal);
165 __wait_cp_io(journal_t *journal, transaction_t *transaction) argument
211 __flush_batch(journal_t *journal, struct buffer_head **bhs, int *batch_count) argument
234 __process_buffer(journal_t *journal, struct journal_head *jh, struct buffer_head **bhs, int *batch_count) argument
299 jbd2_log_do_checkpoint(journal_t *journal) argument
400 jbd2_cleanup_journal_tail(journal_t *journal) argument
521 __jbd2_journal_clean_checkpoint_list(journal_t *journal) argument
584 journal_t *journal; local
669 __jbd2_journal_drop_transaction(journal_t *journal, transaction_t *transaction) argument
[all...]
H A Dcommit.c85 static int inverted_lock(journal_t *journal, struct buffer_head *bh) argument
88 spin_unlock(&journal->j_list_lock);
97 * mode we can now just skip the rest of the journal write
100 * Returns 1 if the journal needs to be aborted or 0 on success
102 static int journal_write_commit_record(journal_t *journal, argument
110 if (is_journal_aborted(journal))
113 descriptor = jbd2_journal_get_descriptor_buffer(journal);
129 if (journal->j_flags & JBD2_BARRIER) {
145 bdevname(journal->j_dev, b));
146 spin_lock(&journal
176 journal_submit_data_buffers(journal_t *journal, transaction_t *commit_transaction) argument
291 jbd2_journal_commit_transaction(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
282 jbd2_journal_skip_recovery(journal_t *journal) argument
319 do_one_pass(journal_t *journal, struct recovery_info *info, enum passtype pass) argument
580 scan_revoke_records(journal_t *journal, struct buffer_head *bh, tid_t sequence, struct recovery_info *info) argument
[all...]
H A Dtransaction.c35 * RUNNING state and add it to the current journal (which should not
40 * The journal MUST be locked. We don't perform atomic mallocs on the
42 * processes trying to touch the journal while it is in transition.
48 jbd2_get_transaction(journal_t *journal, transaction_t *transaction) argument
50 transaction->t_journal = journal;
52 transaction->t_tid = journal->j_transaction_sequence++;
53 transaction->t_expires = jiffies + journal->j_commit_interval;
57 journal->j_commit_timer.expires = transaction->t_expires;
58 add_timer(&journal->j_commit_timer);
60 J_ASSERT(journal
81 start_this_handle(journal_t *journal, handle_t *handle) argument
263 jbd2_journal_start(journal_t *journal, int nblocks) argument
315 journal_t *journal = transaction->t_journal; local
381 journal_t *journal = transaction->t_journal; local
425 jbd2_journal_lock_updates(journal_t *journal) argument
471 jbd2_journal_unlock_updates(journal_t *journal) argument
528 journal_t *journal; local
785 journal_t *journal = transaction->t_journal; local
932 journal_t *journal = handle->h_transaction->t_journal; local
1114 journal_t *journal = transaction->t_journal; local
1212 journal_t *journal = transaction->t_journal; local
1326 journal_t *journal = transaction->t_journal; local
1425 jbd2_journal_force_commit(journal_t *journal) argument
1561 jbd2_journal_unfile_buffer(journal_t *journal, struct journal_head *jh) argument
1576 __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh) argument
1646 jbd2_journal_try_to_free_buffers(journal_t *journal, struct page *page, gfp_t unused_gfp_mask) argument
1760 journal_unmap_buffer(journal_t *journal, struct buffer_head *bh) argument
1903 jbd2_journal_invalidatepage(journal_t *journal, struct page *page, unsigned long offset) argument
2082 jbd2_journal_refile_buffer(journal_t *journal, struct journal_head *jh) argument
[all...]
H A DMakefile7 jbd2-objs := transaction.o commit.o recovery.o checkpoint.o revoke.o journal.o
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/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
82 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
405 __log_space_left(journal_t *journal) argument
429 __log_start_commit(journal_t *journal, tid_t target) argument
450 log_start_commit(journal_t *journal, tid_t tid) argument
470 journal_force_commit_nested(journal_t *journal) argument
497 journal_start_commit(journal_t *journal, tid_t *ptid) argument
524 log_wait_commit(journal_t *journal, tid_t tid) argument
560 journal_next_log_block(journal_t *journal, unsigned long *retp) argument
583 journal_bmap(journal_t *journal, unsigned long blocknr, unsigned long *retp) argument
620 journal_get_descriptor_buffer(journal_t *journal) argument
651 journal_t *journal; local
713 journal_t *journal = journal_init_common(); local
756 journal_t *journal = journal_init_common(); local
808 journal_fail_superblock(journal_t *journal) argument
822 journal_reset(journal_t *journal) argument
856 journal_create(journal_t *journal) argument
927 journal_update_superblock(journal_t *journal, int wait) argument
982 journal_get_superblock(journal_t *journal) argument
1042 load_superblock(journal_t *journal) argument
1071 journal_load(journal_t *journal) argument
1129 journal_destroy(journal_t *journal) argument
1181 journal_check_used_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1212 journal_check_available_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1249 journal_set_features(journal_t *journal, unsigned long compat, unsigned long ro, unsigned long incompat) argument
1280 journal_update_format(journal_t *journal) argument
1302 journal_convert_superblock_v1(journal_t *journal, journal_superblock_t *sb) argument
1337 journal_flush(journal_t *journal) argument
1407 journal_wipe(journal_t *journal, int write) argument
1439 journal_dev_name(journal_t *journal, char *buffer) argument
1464 __journal_abort_hard(journal_t *journal) argument
1485 __journal_abort_soft(journal_t *journal, int errno) argument
1545 journal_abort(journal_t *journal, int errno) argument
1561 journal_errno(journal_t *journal) argument
1581 journal_clear_err(journal_t *journal) argument
1601 journal_ack_err(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
76 journal replay, this involves recording the transaction ID of the
108 static inline int hash(journal_t *journal, unsigned long block) argument
110 struct jbd_revoke_table_s *table = journal->j_revoke;
118 static int insert_revoke_hash(journal_t *journal, unsigned long blocknr, argument
131 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)];
132 spin_lock(&journal->j_revoke_lock);
134 spin_unlock(&journal
147 find_revoke_record(journal_t *journal, unsigned long blocknr) argument
197 journal_init_revoke(journal_t *journal, int hash_size) argument
267 journal_destroy_revoke(journal_t *journal) argument
331 journal_t *journal; local
423 journal_t *journal = handle->h_transaction->t_journal; local
480 journal_switch_revoke_table(journal_t *journal) argument
500 journal_write_revoke_records(journal_t *journal, transaction_t *transaction) argument
541 write_one_revoke_record(journal_t *journal, transaction_t *transaction, struct journal_head **descriptorp, int *offsetp, struct jbd_revoke_record_s *record) argument
599 flush_descriptor(journal_t *journal, struct journal_head *descriptor, int offset) argument
642 journal_set_revoke(journal_t *journal, unsigned long blocknr, tid_t sequence) argument
666 journal_test_revoke(journal_t *journal, unsigned long blocknr, tid_t sequence) argument
685 journal_clear_revoke(journal_t *journal) argument
[all...]
H A Dcheckpoint.c110 * __log_wait_for_space: wait until there is space in the journal.
115 void __log_wait_for_space(journal_t *journal) argument
118 assert_spin_locked(&journal->j_state_lock);
120 nblocks = jbd_space_needed(journal);
121 while (__log_space_left(journal) < nblocks) {
122 if (journal->j_flags & JFS_ABORT)
124 spin_unlock(&journal->j_state_lock);
125 mutex_lock(&journal->j_checkpoint_mutex);
131 spin_lock(&journal->j_state_lock);
132 nblocks = jbd_space_needed(journal);
165 __wait_cp_io(journal_t *journal, transaction_t *transaction) argument
211 __flush_batch(journal_t *journal, struct buffer_head **bhs, int *batch_count) argument
234 __process_buffer(journal_t *journal, struct journal_head *jh, struct buffer_head **bhs, int *batch_count) argument
299 log_do_checkpoint(journal_t *journal) argument
400 cleanup_journal_tail(journal_t *journal) argument
521 __journal_clean_checkpoint_list(journal_t *journal) argument
584 journal_t *journal; local
669 __journal_drop_transaction(journal_t *journal, transaction_t *transaction) 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 = 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
224 journal_recover(journal_t *journal) argument
281 journal_skip_recovery(journal_t *journal) argument
310 do_one_pass(journal_t *journal, struct recovery_info *info, enum passtype pass) argument
570 scan_revoke_records(journal_t *journal, struct buffer_head *bh, tid_t sequence, struct recovery_info *info) argument
[all...]
H A Dcommit.c85 static int inverted_lock(journal_t *journal, struct buffer_head *bh) argument
88 spin_unlock(&journal->j_list_lock);
97 * mode we can now just skip the rest of the journal write
100 * Returns 1 if the journal needs to be aborted or 0 on success
102 static int journal_write_commit_record(journal_t *journal, argument
110 if (is_journal_aborted(journal))
113 descriptor = journal_get_descriptor_buffer(journal);
129 if (journal->j_flags & JFS_BARRIER) {
145 bdevname(journal->j_dev, b));
146 spin_lock(&journal
176 journal_submit_data_buffers(journal_t *journal, transaction_t *commit_transaction) argument
283 journal_commit_transaction(journal_t *journal) argument
[all...]
H A Dtransaction.c35 * RUNNING state and add it to the current journal (which should not
40 * The journal MUST be locked. We don't perform atomic mallocs on the
42 * processes trying to touch the journal while it is in transition.
48 get_transaction(journal_t *journal, transaction_t *transaction) argument
50 transaction->t_journal = journal;
52 transaction->t_tid = journal->j_transaction_sequence++;
53 transaction->t_expires = jiffies + journal->j_commit_interval;
57 journal->j_commit_timer.expires = round_jiffies(transaction->t_expires);
58 add_timer(&journal->j_commit_timer);
60 J_ASSERT(journal
81 start_this_handle(journal_t *journal, handle_t *handle) argument
263 journal_start(journal_t *journal, int nblocks) argument
315 journal_t *journal = transaction->t_journal; local
381 journal_t *journal = transaction->t_journal; local
425 journal_lock_updates(journal_t *journal) argument
471 journal_unlock_updates(journal_t *journal) argument
528 journal_t *journal; local
785 journal_t *journal = transaction->t_journal; local
932 journal_t *journal = handle->h_transaction->t_journal; local
1114 journal_t *journal = transaction->t_journal; local
1212 journal_t *journal = transaction->t_journal; local
1326 journal_t *journal = transaction->t_journal; local
1425 journal_force_commit(journal_t *journal) argument
1561 journal_unfile_buffer(journal_t *journal, struct journal_head *jh) argument
1576 __journal_try_to_free_buffer(journal_t *journal, struct buffer_head *bh) argument
1646 journal_try_to_free_buffers(journal_t *journal, struct page *page, gfp_t unused_gfp_mask) argument
1760 journal_unmap_buffer(journal_t *journal, struct buffer_head *bh) argument
1903 journal_invalidatepage(journal_t *journal, struct page *page, unsigned long offset) argument
2082 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-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/reiserfs/
H A Djournal.c83 /* journal list state bits */
104 struct reiserfs_journal *journal);
112 JBEGIN_REG = 0, /* regular journal begin */
123 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
124 memset(journal->j_hash_table, 0,
171 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
173 struct list_head *entry = journal->j_bitmap_nodes.next;
175 journal->j_used_bitmap_nodes++;
178 if (entry != &journal->j_bitmap_nodes) {
182 journal
195 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
209 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
270 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
327 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
385 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
412 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
489 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
605 struct reiserfs_journal *journal = SB_JOURNAL(s); local
907 struct reiserfs_journal *journal = SB_JOURNAL(s); local
992 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1217 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
1255 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
1320 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
1346 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1372 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1743 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1810 struct reiserfs_journal *journal = SB_JOURNAL(s); local
1887 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
1913 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
2103 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
2329 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
2540 release_journal_dev(struct super_block *super, struct reiserfs_journal *journal) argument
2564 journal_init_dev(struct super_block *super, struct reiserfs_journal *journal, const char *jdev_name) argument
2634 struct reiserfs_journal *journal; local
2855 struct reiserfs_journal *journal = SB_JOURNAL(th->t_super); local
2879 struct reiserfs_journal *journal = SB_JOURNAL(th->t_super); local
2891 struct reiserfs_journal *journal = SB_JOURNAL(s); local
2901 struct reiserfs_journal *journal = SB_JOURNAL(s); local
2909 struct reiserfs_journal *journal = SB_JOURNAL(s); local
2927 struct reiserfs_journal *journal = SB_JOURNAL(s); local
2934 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
2964 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3200 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3344 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3435 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3453 struct reiserfs_journal *journal = local
3477 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3531 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3640 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3723 struct reiserfs_journal *journal = SB_JOURNAL(inode->i_sb); local
3737 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
3809 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
3857 struct reiserfs_journal *journal = SB_JOURNAL(s); local
3890 struct reiserfs_journal *journal = SB_JOURNAL(p_s_sb); local
4251 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
4268 struct reiserfs_journal *journal = SB_JOURNAL(sb); local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ocfs2/
H A Djournal.c4 * journal.c
42 #include "journal.h"
73 struct ocfs2_journal *journal = NULL; local
77 journal = osb->journal;
79 /* Flush all pending commits and checkpoint the journal. */
80 down_write(&journal->j_trans_barrier);
82 if (atomic_read(&journal->j_num_trans) == 0) {
83 up_write(&journal->j_trans_barrier);
88 journal_lock_updates(journal
118 journal_t *journal = osb->journal->j_journal; local
159 struct ocfs2_journal *journal = osb->journal; local
311 journal_t *journal = osb->journal->j_journal; local
322 ocfs2_journal_init(struct ocfs2_journal *journal, int *dirty) argument
426 struct ocfs2_journal *journal = osb->journal; local
467 struct ocfs2_journal *journal = NULL; local
551 ocfs2_clear_journal_error(struct super_block *sb, journal_t *journal, int slot) argument
569 ocfs2_journal_load(struct ocfs2_journal *journal, int local) argument
617 ocfs2_journal_wipe(struct ocfs2_journal *journal, int full) argument
721 struct ocfs2_journal *journal = local
783 ocfs2_queue_recovery_completion(struct ocfs2_journal *journal, int slot_num, struct ocfs2_dinode *la_dinode, struct ocfs2_dinode *tl_dinode) argument
820 struct ocfs2_journal *journal = osb->journal; local
949 journal_t *journal = NULL; local
1447 struct ocfs2_journal *journal = osb->journal; local
1484 struct inode *journal = NULL; local
[all...]
H A Djournal.h4 * journal.h
44 journal_t *j_journal; /* The kernels journal type */
46 * this journal */
82 static inline void ocfs2_set_inode_lock_trans(struct ocfs2_journal *journal, argument
86 OCFS2_I(inode)->ip_last_trans = journal->j_trans_id;
98 struct ocfs2_journal *journal = OCFS2_SB(inode->i_sb)->journal; local
101 ret = time_after(journal->j_trans_id, OCFS2_I(inode)->ip_last_trans);
115 * journal open and j_trans_id could be junk. */
119 ret = !(time_after(OCFS2_SB(inode->i_sb)->journal
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Djbd2.h28 #include <linux/journal-head.h>
153 * The block tag: used to describe a single buffer in the journal.
156 * journal_tag_bytes(journal) instead to compute this.
179 /* Definitions for the journal tag flags word: */
187 * The journal superblock. All fields are in big-endian byte order.
195 /* Static information describing the journal */
196 __be32 s_blocksize; /* journal device blocksize */
197 __be32 s_maxlen; /* total blocks in journal file */
215 __u8 s_uuid[16]; /* 128-bit uuid for journal */
223 __be32 s_max_transaction; /* Limit of journal block
1021 is_journal_aborted(journal_t *journal) argument
1062 jbd_space_needed(journal_t *journal) argument
[all...]

Completed in 107 milliseconds

12