• Home
  • Raw
  • Download

Lines Matching refs:journal

433 static void ext4_journal_commit_callback(journal_t *journal, transaction_t *txn)  in ext4_journal_commit_callback()  argument
435 struct super_block *sb = journal->j_private; in ext4_journal_commit_callback()
437 int error = is_journal_aborted(journal); in ext4_journal_commit_callback()
634 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error() local
643 if (journal) in ext4_handle_error()
644 jbd2_journal_abort(journal, -EIO); in ext4_handle_error()
655 if (continue_fs && journal) in ext4_handle_error()
687 journal_t *journal = sbi->s_journal; in flush_stashed_error_work() local
698 if (!sb_rdonly(sbi->s_sb) && journal) { in flush_stashed_error_work()
700 handle = jbd2_journal_start(journal, 1); in flush_stashed_error_work()
5115 static void ext4_init_journal_params(struct super_block *sb, journal_t *journal) in ext4_init_journal_params() argument
5119 journal->j_commit_interval = sbi->s_commit_interval; in ext4_init_journal_params()
5120 journal->j_min_batch_time = sbi->s_min_batch_time; in ext4_init_journal_params()
5121 journal->j_max_batch_time = sbi->s_max_batch_time; in ext4_init_journal_params()
5122 ext4_fc_init(sb, journal); in ext4_init_journal_params()
5124 write_lock(&journal->j_state_lock); in ext4_init_journal_params()
5126 journal->j_flags |= JBD2_BARRIER; in ext4_init_journal_params()
5128 journal->j_flags &= ~JBD2_BARRIER; in ext4_init_journal_params()
5130 journal->j_flags |= JBD2_ABORT_ON_SYNCDATA_ERR; in ext4_init_journal_params()
5132 journal->j_flags &= ~JBD2_ABORT_ON_SYNCDATA_ERR; in ext4_init_journal_params()
5133 write_unlock(&journal->j_state_lock); in ext4_init_journal_params()
5172 journal_t *journal; in ext4_get_journal() local
5181 journal = jbd2_journal_init_inode(journal_inode); in ext4_get_journal()
5182 if (!journal) { in ext4_get_journal()
5187 journal->j_private = sb; in ext4_get_journal()
5188 ext4_init_journal_params(sb, journal); in ext4_get_journal()
5189 return journal; in ext4_get_journal()
5196 journal_t *journal; in ext4_get_dev_journal() local
5258 journal = jbd2_journal_init_dev(bdev, sb->s_bdev, in ext4_get_dev_journal()
5260 if (!journal) { in ext4_get_dev_journal()
5264 journal->j_private = sb; in ext4_get_dev_journal()
5265 if (ext4_read_bh_lock(journal->j_sb_buffer, REQ_META | REQ_PRIO, true)) { in ext4_get_dev_journal()
5269 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) { in ext4_get_dev_journal()
5272 be32_to_cpu(journal->j_superblock->s_nr_users)); in ext4_get_dev_journal()
5276 ext4_init_journal_params(sb, journal); in ext4_get_dev_journal()
5277 return journal; in ext4_get_dev_journal()
5280 jbd2_journal_destroy(journal); in ext4_get_dev_journal()
5290 journal_t *journal; in ext4_load_journal() local
5315 journal = ext4_get_journal(sb, journal_inum); in ext4_load_journal()
5316 if (!journal) in ext4_load_journal()
5319 journal = ext4_get_dev_journal(sb, journal_dev); in ext4_load_journal()
5320 if (!journal) in ext4_load_journal()
5324 journal_dev_ro = bdev_read_only(journal->j_dev); in ext4_load_journal()
5355 if (!(journal->j_flags & JBD2_BARRIER)) in ext4_load_journal()
5359 err = jbd2_journal_wipe(journal, !really_read_only); in ext4_load_journal()
5365 err = jbd2_journal_load(journal); in ext4_load_journal()
5377 EXT4_SB(sb)->s_journal = journal; in ext4_load_journal()
5381 jbd2_journal_destroy(journal); in ext4_load_journal()
5399 jbd2_journal_destroy(journal); in ext4_load_journal()
5527 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_mark_recovery_complete() local
5530 if (journal != NULL) { in ext4_mark_recovery_complete()
5537 jbd2_journal_lock_updates(journal); in ext4_mark_recovery_complete()
5538 err = jbd2_journal_flush(journal, 0); in ext4_mark_recovery_complete()
5554 jbd2_journal_unlock_updates(journal); in ext4_mark_recovery_complete()
5566 journal_t *journal; in ext4_clear_journal_err() local
5575 journal = EXT4_SB(sb)->s_journal; in ext4_clear_journal_err()
5582 j_errno = jbd2_journal_errno(journal); in ext4_clear_journal_err()
5595 jbd2_journal_clear_err(journal); in ext4_clear_journal_err()
5596 jbd2_journal_update_sb_errno(journal); in ext4_clear_journal_err()
5607 journal_t *journal; in ext4_force_commit() local
5612 journal = EXT4_SB(sb)->s_journal; in ext4_force_commit()
5613 return ext4_journal_force_commit(journal); in ext4_force_commit()
5672 journal_t *journal; in ext4_freeze() local
5677 journal = EXT4_SB(sb)->s_journal; in ext4_freeze()
5679 if (journal) { in ext4_freeze()
5681 jbd2_journal_lock_updates(journal); in ext4_freeze()
5687 error = jbd2_journal_flush(journal, 0); in ext4_freeze()
5699 if (journal) in ext4_freeze()
5701 jbd2_journal_unlock_updates(journal); in ext4_freeze()