Lines Matching refs:journal
961 static int ext4_fc_submit_inode_data_all(journal_t *journal) in ext4_fc_submit_inode_data_all() argument
963 struct super_block *sb = journal->j_private; in ext4_fc_submit_inode_data_all()
984 ret = jbd2_submit_inode_data(journal, ei->jinode); in ext4_fc_submit_inode_data_all()
995 static int ext4_fc_wait_inode_data_all(journal_t *journal) in ext4_fc_wait_inode_data_all() argument
997 struct super_block *sb = journal->j_private; in ext4_fc_wait_inode_data_all()
1009 ret = jbd2_wait_inode_data(journal, pos->jinode); in ext4_fc_wait_inode_data_all()
1020 static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc) in ext4_fc_commit_dentry_updates() argument
1024 struct super_block *sb = journal->j_private; in ext4_fc_commit_dentry_updates()
1084 static int ext4_fc_perform_commit(journal_t *journal) in ext4_fc_perform_commit() argument
1086 struct super_block *sb = journal->j_private; in ext4_fc_perform_commit()
1095 ret = ext4_fc_submit_inode_data_all(journal); in ext4_fc_perform_commit()
1099 ret = ext4_fc_wait_inode_data_all(journal); in ext4_fc_perform_commit()
1107 if (journal->j_fs_dev != journal->j_dev) in ext4_fc_perform_commit()
1108 blkdev_issue_flush(journal->j_fs_dev); in ext4_fc_perform_commit()
1127 ret = ext4_fc_commit_dentry_updates(journal, &crc); in ext4_fc_perform_commit()
1189 int ext4_fc_commit(journal_t *journal, tid_t commit_tid) in ext4_fc_commit() argument
1191 struct super_block *sb = journal->j_private; in ext4_fc_commit()
1193 int nblks = 0, ret, bsize = journal->j_blocksize; in ext4_fc_commit()
1199 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1206 ret = jbd2_fc_begin_commit(journal, commit_tid); in ext4_fc_commit()
1210 commit_tid > journal->j_commit_sequence) in ext4_fc_commit()
1222 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1235 ret = ext4_fc_perform_commit(journal); in ext4_fc_commit()
1241 ret = jbd2_fc_wait_bufs(journal, nblks); in ext4_fc_commit()
1247 ret = jbd2_fc_end_commit(journal); in ext4_fc_commit()
1257 ret = jbd2_fc_end_commit_fallback(journal); in ext4_fc_commit()
1266 static void ext4_fc_cleanup(journal_t *journal, int full, tid_t tid) in ext4_fc_cleanup() argument
1268 struct super_block *sb = journal->j_private; in ext4_fc_cleanup()
1276 trace_ext4_fc_cleanup(journal, full, tid); in ext4_fc_cleanup()
1277 jbd2_fc_release_bufs(journal); in ext4_fc_cleanup()
2027 static int ext4_fc_replay_scan(journal_t *journal, in ext4_fc_replay_scan() argument
2031 struct super_block *sb = journal->j_private; in ext4_fc_replay_scan()
2045 end = start + journal->j_blocksize; in ext4_fc_replay_scan()
2150 static int ext4_fc_replay(journal_t *journal, struct buffer_head *bh, in ext4_fc_replay() argument
2153 struct super_block *sb = journal->j_private; in ext4_fc_replay()
2163 return ext4_fc_replay_scan(journal, bh, off, expected_tid); in ext4_fc_replay()
2184 end = start + journal->j_blocksize; in ext4_fc_replay()
2242 void ext4_fc_init(struct super_block *sb, journal_t *journal) in ext4_fc_init() argument
2249 journal->j_fc_replay_callback = ext4_fc_replay; in ext4_fc_init()
2252 journal->j_fc_cleanup_callback = ext4_fc_cleanup; in ext4_fc_init()