Lines Matching refs:journal

866 static int ext4_fc_submit_inode_data_all(journal_t *journal)  in ext4_fc_submit_inode_data_all()  argument
868 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_submit_inode_data_all()
903 static int ext4_fc_wait_inode_data_all(journal_t *journal) in ext4_fc_wait_inode_data_all() argument
905 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_wait_inode_data_all()
917 ret = jbd2_wait_inode_data(journal, pos->jinode); in ext4_fc_wait_inode_data_all()
928 static int ext4_fc_commit_dentry_updates(journal_t *journal, u32 *crc) in ext4_fc_commit_dentry_updates() argument
932 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_commit_dentry_updates()
1007 static int ext4_fc_perform_commit(journal_t *journal) in ext4_fc_perform_commit() argument
1009 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_perform_commit()
1019 ret = ext4_fc_submit_inode_data_all(journal); in ext4_fc_perform_commit()
1023 ret = ext4_fc_wait_inode_data_all(journal); in ext4_fc_perform_commit()
1031 if (journal->j_fs_dev != journal->j_dev) in ext4_fc_perform_commit()
1032 blkdev_issue_flush(journal->j_fs_dev, GFP_NOFS); in ext4_fc_perform_commit()
1051 ret = ext4_fc_commit_dentry_updates(journal, &crc); in ext4_fc_perform_commit()
1087 int ext4_fc_commit(journal_t *journal, tid_t commit_tid) in ext4_fc_commit() argument
1089 struct super_block *sb = (struct super_block *)(journal->j_private); in ext4_fc_commit()
1091 int nblks = 0, ret, bsize = journal->j_blocksize; in ext4_fc_commit()
1107 ret = jbd2_fc_begin_commit(journal, commit_tid); in ext4_fc_commit()
1111 commit_tid > journal->j_commit_sequence) in ext4_fc_commit()
1122 ret = ext4_fc_perform_commit(journal); in ext4_fc_commit()
1129 ret = jbd2_fc_wait_bufs(journal, nblks); in ext4_fc_commit()
1136 jbd2_fc_end_commit(journal); in ext4_fc_commit()
1169 return jbd2_fc_end_commit_fallback(journal); in ext4_fc_commit()
1172 return jbd2_complete_transaction(journal, commit_tid); in ext4_fc_commit()
1180 static void ext4_fc_cleanup(journal_t *journal, int full) in ext4_fc_cleanup() argument
1182 struct super_block *sb = journal->j_private; in ext4_fc_cleanup()
1191 jbd2_fc_release_bufs(journal); in ext4_fc_cleanup()
1919 static int ext4_fc_replay_scan(journal_t *journal, in ext4_fc_replay_scan() argument
1923 struct super_block *sb = journal->j_private; in ext4_fc_replay_scan()
1937 end = (__u8 *)bh->b_data + journal->j_blocksize - 1; in ext4_fc_replay_scan()
2035 static int ext4_fc_replay(journal_t *journal, struct buffer_head *bh, in ext4_fc_replay() argument
2038 struct super_block *sb = journal->j_private; in ext4_fc_replay()
2048 return ext4_fc_replay_scan(journal, bh, off, expected_tid); in ext4_fc_replay()
2069 end = (__u8 *)bh->b_data + journal->j_blocksize - 1; in ext4_fc_replay()
2127 void ext4_fc_init(struct super_block *sb, journal_t *journal) in ext4_fc_init() argument
2134 journal->j_fc_replay_callback = ext4_fc_replay; in ext4_fc_init()
2137 journal->j_fc_cleanup_callback = ext4_fc_cleanup; in ext4_fc_init()