• Home
  • Raw
  • Download

Lines Matching refs:journal

300 	journal_t *journal;  in ext4_journal_start_sb()  local
307 journal = EXT4_SB(sb)->s_journal; in ext4_journal_start_sb()
320 if (!journal) in ext4_journal_start_sb()
327 if (is_journal_aborted(journal)) { in ext4_journal_start_sb()
331 return jbd2_journal_start(journal, nblocks); in ext4_journal_start_sb()
435 static void ext4_journal_commit_callback(journal_t *journal, transaction_t *txn) in ext4_journal_commit_callback() argument
437 struct super_block *sb = journal->j_private; in ext4_journal_commit_callback()
439 int error = is_journal_aborted(journal); in ext4_journal_commit_callback()
476 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error() local
479 if (journal) in ext4_handle_error()
480 jbd2_journal_abort(journal, -EIO); in ext4_handle_error()
1078 journal_t *journal = EXT4_SB(sb)->s_journal; in bdev_try_to_free_page() local
1083 if (journal) in bdev_try_to_free_page()
1084 return jbd2_journal_try_to_free_buffers(journal, page, in bdev_try_to_free_page()
3869 static void ext4_init_journal_params(struct super_block *sb, journal_t *journal) in ext4_init_journal_params() argument
3873 journal->j_commit_interval = sbi->s_commit_interval; in ext4_init_journal_params()
3874 journal->j_min_batch_time = sbi->s_min_batch_time; in ext4_init_journal_params()
3875 journal->j_max_batch_time = sbi->s_max_batch_time; in ext4_init_journal_params()
3877 write_lock(&journal->j_state_lock); in ext4_init_journal_params()
3879 journal->j_flags |= JBD2_BARRIER; in ext4_init_journal_params()
3881 journal->j_flags &= ~JBD2_BARRIER; in ext4_init_journal_params()
3883 journal->j_flags |= JBD2_ABORT_ON_SYNCDATA_ERR; in ext4_init_journal_params()
3885 journal->j_flags &= ~JBD2_ABORT_ON_SYNCDATA_ERR; in ext4_init_journal_params()
3886 write_unlock(&journal->j_state_lock); in ext4_init_journal_params()
3893 journal_t *journal; in ext4_get_journal() local
3921 journal = jbd2_journal_init_inode(journal_inode); in ext4_get_journal()
3922 if (!journal) { in ext4_get_journal()
3927 journal->j_private = sb; in ext4_get_journal()
3928 ext4_init_journal_params(sb, journal); in ext4_get_journal()
3929 return journal; in ext4_get_journal()
3936 journal_t *journal; in ext4_get_dev_journal() local
3988 journal = jbd2_journal_init_dev(bdev, sb->s_bdev, in ext4_get_dev_journal()
3990 if (!journal) { in ext4_get_dev_journal()
3994 journal->j_private = sb; in ext4_get_dev_journal()
3995 ll_rw_block(READ, 1, &journal->j_sb_buffer); in ext4_get_dev_journal()
3996 wait_on_buffer(journal->j_sb_buffer); in ext4_get_dev_journal()
3997 if (!buffer_uptodate(journal->j_sb_buffer)) { in ext4_get_dev_journal()
4001 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) { in ext4_get_dev_journal()
4004 be32_to_cpu(journal->j_superblock->s_nr_users)); in ext4_get_dev_journal()
4008 ext4_init_journal_params(sb, journal); in ext4_get_dev_journal()
4009 return journal; in ext4_get_dev_journal()
4012 jbd2_journal_destroy(journal); in ext4_get_dev_journal()
4022 journal_t *journal; in ext4_load_journal() local
4066 if (!(journal = ext4_get_journal(sb, journal_inum))) in ext4_load_journal()
4069 if (!(journal = ext4_get_dev_journal(sb, journal_dev))) in ext4_load_journal()
4073 if (!(journal->j_flags & JBD2_BARRIER)) in ext4_load_journal()
4077 err = jbd2_journal_wipe(journal, !really_read_only); in ext4_load_journal()
4083 err = jbd2_journal_load(journal); in ext4_load_journal()
4092 jbd2_journal_destroy(journal); in ext4_load_journal()
4096 EXT4_SB(sb)->s_journal = journal; in ext4_load_journal()
4185 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_mark_recovery_complete() local
4188 BUG_ON(journal != NULL); in ext4_mark_recovery_complete()
4191 jbd2_journal_lock_updates(journal); in ext4_mark_recovery_complete()
4192 if (jbd2_journal_flush(journal) < 0) in ext4_mark_recovery_complete()
4202 jbd2_journal_unlock_updates(journal); in ext4_mark_recovery_complete()
4213 journal_t *journal; in ext4_clear_journal_err() local
4219 journal = EXT4_SB(sb)->s_journal; in ext4_clear_journal_err()
4226 j_errno = jbd2_journal_errno(journal); in ext4_clear_journal_err()
4239 jbd2_journal_clear_err(journal); in ext4_clear_journal_err()
4240 jbd2_journal_update_sb_errno(journal); in ext4_clear_journal_err()
4250 journal_t *journal; in ext4_force_commit() local
4256 journal = EXT4_SB(sb)->s_journal; in ext4_force_commit()
4257 if (journal) { in ext4_force_commit()
4259 ret = ext4_journal_force_commit(journal); in ext4_force_commit()
4299 journal_t *journal; in ext4_freeze() local
4304 journal = EXT4_SB(sb)->s_journal; in ext4_freeze()
4307 jbd2_journal_lock_updates(journal); in ext4_freeze()
4313 error = jbd2_journal_flush(journal); in ext4_freeze()