Lines Matching refs:journal

970 static int ext4_fc_flush_data(journal_t *journal)  in ext4_fc_flush_data()  argument
972 struct super_block *sb = journal->j_private; in ext4_fc_flush_data()
978 ret = jbd2_submit_inode_data(journal, READ_ONCE(ei->jinode)); in ext4_fc_flush_data()
984 ret = jbd2_wait_inode_data(journal, READ_ONCE(ei->jinode)); in ext4_fc_flush_data()
993 static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc) in ext4_fc_commit_dentry_updates() argument
995 struct super_block *sb = journal->j_private; in ext4_fc_commit_dentry_updates()
1042 static int ext4_fc_perform_commit(journal_t *journal) in ext4_fc_perform_commit() argument
1044 struct super_block *sb = journal->j_private; in ext4_fc_perform_commit()
1067 ret = ext4_fc_flush_data(journal); in ext4_fc_perform_commit()
1102 jbd2_journal_lock_updates(journal); in ext4_fc_perform_commit()
1114 jbd2_journal_unlock_updates(journal); in ext4_fc_perform_commit()
1120 if (journal->j_fs_dev != journal->j_dev) in ext4_fc_perform_commit()
1121 blkdev_issue_flush(journal->j_fs_dev); in ext4_fc_perform_commit()
1142 ret = ext4_fc_commit_dentry_updates(journal, &crc); in ext4_fc_perform_commit()
1201 int ext4_fc_commit(journal_t *journal, tid_t commit_tid) in ext4_fc_commit() argument
1203 struct super_block *sb = journal->j_private; in ext4_fc_commit()
1205 int nblks = 0, ret, bsize = journal->j_blocksize; in ext4_fc_commit()
1212 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1220 ret = jbd2_fc_begin_commit(journal, commit_tid); in ext4_fc_commit()
1224 tid_gt(commit_tid, journal->j_commit_sequence)) in ext4_fc_commit()
1236 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1252 if (journal->j_task->io_context) in ext4_fc_commit()
1258 ret = ext4_fc_perform_commit(journal); in ext4_fc_commit()
1264 ret = jbd2_fc_wait_bufs(journal, nblks); in ext4_fc_commit()
1270 ret = jbd2_fc_end_commit(journal); in ext4_fc_commit()
1282 ret = jbd2_fc_end_commit_fallback(journal); in ext4_fc_commit()
1291 static void ext4_fc_cleanup(journal_t *journal, int full, tid_t tid) in ext4_fc_cleanup() argument
1293 struct super_block *sb = journal->j_private; in ext4_fc_cleanup()
1302 trace_ext4_fc_cleanup(journal, full, tid); in ext4_fc_cleanup()
1303 jbd2_fc_release_bufs(journal); in ext4_fc_cleanup()
2074 static int ext4_fc_replay_scan(journal_t *journal, in ext4_fc_replay_scan() argument
2078 struct super_block *sb = journal->j_private; in ext4_fc_replay_scan()
2092 end = start + journal->j_blocksize; in ext4_fc_replay_scan()
2197 static int ext4_fc_replay(journal_t *journal, struct buffer_head *bh, in ext4_fc_replay() argument
2200 struct super_block *sb = journal->j_private; in ext4_fc_replay()
2210 return ext4_fc_replay_scan(journal, bh, off, expected_tid); in ext4_fc_replay()
2231 end = start + journal->j_blocksize; in ext4_fc_replay()
2289 void ext4_fc_init(struct super_block *sb, journal_t *journal) in ext4_fc_init() argument
2296 journal->j_fc_replay_callback = ext4_fc_replay; in ext4_fc_init()
2299 journal->j_fc_cleanup_callback = ext4_fc_cleanup; in ext4_fc_init()