Lines Matching refs:journal
983 static int ext4_fc_submit_inode_data_all(journal_t *journal) in ext4_fc_submit_inode_data_all() argument
985 struct super_block *sb = journal->j_private; in ext4_fc_submit_inode_data_all()
1017 static int ext4_fc_wait_inode_data_all(journal_t *journal) in ext4_fc_wait_inode_data_all() argument
1019 struct super_block *sb = journal->j_private; in ext4_fc_wait_inode_data_all()
1031 ret = jbd2_wait_inode_data(journal, pos->jinode); in ext4_fc_wait_inode_data_all()
1042 static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc) in ext4_fc_commit_dentry_updates() argument
1046 struct super_block *sb = journal->j_private; in ext4_fc_commit_dentry_updates()
1106 static int ext4_fc_perform_commit(journal_t *journal) in ext4_fc_perform_commit() argument
1108 struct super_block *sb = journal->j_private; in ext4_fc_perform_commit()
1117 ret = ext4_fc_submit_inode_data_all(journal); in ext4_fc_perform_commit()
1121 ret = ext4_fc_wait_inode_data_all(journal); in ext4_fc_perform_commit()
1129 if (journal->j_fs_dev != journal->j_dev) in ext4_fc_perform_commit()
1130 blkdev_issue_flush(journal->j_fs_dev); in ext4_fc_perform_commit()
1149 ret = ext4_fc_commit_dentry_updates(journal, &crc); in ext4_fc_perform_commit()
1211 int ext4_fc_commit(journal_t *journal, tid_t commit_tid) in ext4_fc_commit() argument
1213 struct super_block *sb = journal->j_private; in ext4_fc_commit()
1215 int nblks = 0, ret, bsize = journal->j_blocksize; in ext4_fc_commit()
1221 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1228 ret = jbd2_fc_begin_commit(journal, commit_tid); in ext4_fc_commit()
1232 commit_tid > journal->j_commit_sequence) in ext4_fc_commit()
1244 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1257 ret = ext4_fc_perform_commit(journal); in ext4_fc_commit()
1263 ret = jbd2_fc_wait_bufs(journal, nblks); in ext4_fc_commit()
1269 ret = jbd2_fc_end_commit(journal); in ext4_fc_commit()
1279 ret = jbd2_fc_end_commit_fallback(journal); in ext4_fc_commit()
1288 static void ext4_fc_cleanup(journal_t *journal, int full, tid_t tid) in ext4_fc_cleanup() argument
1290 struct super_block *sb = journal->j_private; in ext4_fc_cleanup()
1298 trace_ext4_fc_cleanup(journal, full, tid); in ext4_fc_cleanup()
1299 jbd2_fc_release_bufs(journal); in ext4_fc_cleanup()
2041 static int ext4_fc_replay_scan(journal_t *journal, in ext4_fc_replay_scan() argument
2045 struct super_block *sb = journal->j_private; in ext4_fc_replay_scan()
2059 end = start + journal->j_blocksize; in ext4_fc_replay_scan()
2164 static int ext4_fc_replay(journal_t *journal, struct buffer_head *bh, in ext4_fc_replay() argument
2167 struct super_block *sb = journal->j_private; in ext4_fc_replay()
2177 return ext4_fc_replay_scan(journal, bh, off, expected_tid); in ext4_fc_replay()
2198 end = start + journal->j_blocksize; in ext4_fc_replay()
2256 void ext4_fc_init(struct super_block *sb, journal_t *journal) in ext4_fc_init() argument
2263 journal->j_fc_replay_callback = ext4_fc_replay; in ext4_fc_init()
2266 journal->j_fc_cleanup_callback = ext4_fc_cleanup; in ext4_fc_init()