Lines Matching refs:journal
967 static int ext4_fc_flush_data(journal_t *journal) in ext4_fc_flush_data() argument
969 struct super_block *sb = journal->j_private; in ext4_fc_flush_data()
975 ret = jbd2_submit_inode_data(journal, ei->jinode); in ext4_fc_flush_data()
981 ret = jbd2_wait_inode_data(journal, ei->jinode); in ext4_fc_flush_data()
990 static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc) in ext4_fc_commit_dentry_updates() argument
992 struct super_block *sb = journal->j_private; in ext4_fc_commit_dentry_updates()
1039 static int ext4_fc_perform_commit(journal_t *journal) in ext4_fc_perform_commit() argument
1041 struct super_block *sb = journal->j_private; in ext4_fc_perform_commit()
1063 ret = ext4_fc_flush_data(journal); in ext4_fc_perform_commit()
1098 jbd2_journal_lock_updates(journal); in ext4_fc_perform_commit()
1110 jbd2_journal_unlock_updates(journal); in ext4_fc_perform_commit()
1116 if (journal->j_fs_dev != journal->j_dev) in ext4_fc_perform_commit()
1117 blkdev_issue_flush(journal->j_fs_dev); in ext4_fc_perform_commit()
1138 ret = ext4_fc_commit_dentry_updates(journal, &crc); in ext4_fc_perform_commit()
1197 int ext4_fc_commit(journal_t *journal, tid_t commit_tid) in ext4_fc_commit() argument
1199 struct super_block *sb = journal->j_private; in ext4_fc_commit()
1201 int nblks = 0, ret, bsize = journal->j_blocksize; in ext4_fc_commit()
1208 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1216 ret = jbd2_fc_begin_commit(journal, commit_tid); in ext4_fc_commit()
1220 tid_gt(commit_tid, journal->j_commit_sequence)) in ext4_fc_commit()
1232 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1248 if (journal->j_task->io_context) in ext4_fc_commit()
1254 ret = ext4_fc_perform_commit(journal); in ext4_fc_commit()
1260 ret = jbd2_fc_wait_bufs(journal, nblks); in ext4_fc_commit()
1266 ret = jbd2_fc_end_commit(journal); in ext4_fc_commit()
1278 ret = jbd2_fc_end_commit_fallback(journal); in ext4_fc_commit()
1287 static void ext4_fc_cleanup(journal_t *journal, int full, tid_t tid) in ext4_fc_cleanup() argument
1289 struct super_block *sb = journal->j_private; in ext4_fc_cleanup()
1297 trace_ext4_fc_cleanup(journal, full, tid); in ext4_fc_cleanup()
1298 jbd2_fc_release_bufs(journal); in ext4_fc_cleanup()
2066 static int ext4_fc_replay_scan(journal_t *journal, in ext4_fc_replay_scan() argument
2070 struct super_block *sb = journal->j_private; in ext4_fc_replay_scan()
2084 end = start + journal->j_blocksize; in ext4_fc_replay_scan()
2189 static int ext4_fc_replay(journal_t *journal, struct buffer_head *bh, in ext4_fc_replay() argument
2192 struct super_block *sb = journal->j_private; in ext4_fc_replay()
2202 return ext4_fc_replay_scan(journal, bh, off, expected_tid); in ext4_fc_replay()
2223 end = start + journal->j_blocksize; in ext4_fc_replay()
2281 void ext4_fc_init(struct super_block *sb, journal_t *journal) in ext4_fc_init() argument
2288 journal->j_fc_replay_callback = ext4_fc_replay; in ext4_fc_init()
2291 journal->j_fc_cleanup_callback = ext4_fc_cleanup; in ext4_fc_init()