• Home
  • Raw
  • Download

Lines Matching refs:journal

412 static void ext4_journal_commit_callback(journal_t *journal, transaction_t *txn)  in ext4_journal_commit_callback()  argument
414 struct super_block *sb = journal->j_private; in ext4_journal_commit_callback()
416 int error = is_journal_aborted(journal); in ext4_journal_commit_callback()
458 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_handle_error() local
467 if (journal) in ext4_handle_error()
468 jbd2_journal_abort(journal, -EIO); in ext4_handle_error()
1259 journal_t *journal = EXT4_SB(sb)->s_journal; in bdev_try_to_free_page() local
1264 if (journal) in bdev_try_to_free_page()
1265 return jbd2_journal_try_to_free_buffers(journal, page, in bdev_try_to_free_page()
4851 static void ext4_init_journal_params(struct super_block *sb, journal_t *journal) in ext4_init_journal_params() argument
4855 journal->j_commit_interval = sbi->s_commit_interval; in ext4_init_journal_params()
4856 journal->j_min_batch_time = sbi->s_min_batch_time; in ext4_init_journal_params()
4857 journal->j_max_batch_time = sbi->s_max_batch_time; in ext4_init_journal_params()
4859 write_lock(&journal->j_state_lock); in ext4_init_journal_params()
4861 journal->j_flags |= JBD2_BARRIER; in ext4_init_journal_params()
4863 journal->j_flags &= ~JBD2_BARRIER; in ext4_init_journal_params()
4865 journal->j_flags |= JBD2_ABORT_ON_SYNCDATA_ERR; in ext4_init_journal_params()
4867 journal->j_flags &= ~JBD2_ABORT_ON_SYNCDATA_ERR; in ext4_init_journal_params()
4868 write_unlock(&journal->j_state_lock); in ext4_init_journal_params()
4907 journal_t *journal; in ext4_get_journal() local
4916 journal = jbd2_journal_init_inode(journal_inode); in ext4_get_journal()
4917 if (!journal) { in ext4_get_journal()
4922 journal->j_private = sb; in ext4_get_journal()
4923 ext4_init_journal_params(sb, journal); in ext4_get_journal()
4924 return journal; in ext4_get_journal()
4931 journal_t *journal; in ext4_get_dev_journal() local
4993 journal = jbd2_journal_init_dev(bdev, sb->s_bdev, in ext4_get_dev_journal()
4995 if (!journal) { in ext4_get_dev_journal()
4999 journal->j_private = sb; in ext4_get_dev_journal()
5000 ll_rw_block(REQ_OP_READ, REQ_META | REQ_PRIO, 1, &journal->j_sb_buffer); in ext4_get_dev_journal()
5001 wait_on_buffer(journal->j_sb_buffer); in ext4_get_dev_journal()
5002 if (!buffer_uptodate(journal->j_sb_buffer)) { in ext4_get_dev_journal()
5006 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) { in ext4_get_dev_journal()
5009 be32_to_cpu(journal->j_superblock->s_nr_users)); in ext4_get_dev_journal()
5013 ext4_init_journal_params(sb, journal); in ext4_get_dev_journal()
5014 return journal; in ext4_get_dev_journal()
5017 jbd2_journal_destroy(journal); in ext4_get_dev_journal()
5027 journal_t *journal; in ext4_load_journal() local
5052 journal = ext4_get_journal(sb, journal_inum); in ext4_load_journal()
5053 if (!journal) in ext4_load_journal()
5056 journal = ext4_get_dev_journal(sb, journal_dev); in ext4_load_journal()
5057 if (!journal) in ext4_load_journal()
5061 journal_dev_ro = bdev_read_only(journal->j_dev); in ext4_load_journal()
5092 if (!(journal->j_flags & JBD2_BARRIER)) in ext4_load_journal()
5096 err = jbd2_journal_wipe(journal, !really_read_only); in ext4_load_journal()
5102 err = jbd2_journal_load(journal); in ext4_load_journal()
5114 EXT4_SB(sb)->s_journal = journal; in ext4_load_journal()
5118 jbd2_journal_destroy(journal); in ext4_load_journal()
5133 jbd2_journal_destroy(journal); in ext4_load_journal()
5219 journal_t *journal = EXT4_SB(sb)->s_journal; in ext4_mark_recovery_complete() local
5222 if (journal != NULL) { in ext4_mark_recovery_complete()
5229 jbd2_journal_lock_updates(journal); in ext4_mark_recovery_complete()
5230 err = jbd2_journal_flush(journal); in ext4_mark_recovery_complete()
5239 jbd2_journal_unlock_updates(journal); in ext4_mark_recovery_complete()
5251 journal_t *journal; in ext4_clear_journal_err() local
5260 journal = EXT4_SB(sb)->s_journal; in ext4_clear_journal_err()
5267 j_errno = jbd2_journal_errno(journal); in ext4_clear_journal_err()
5280 jbd2_journal_clear_err(journal); in ext4_clear_journal_err()
5281 jbd2_journal_update_sb_errno(journal); in ext4_clear_journal_err()
5292 journal_t *journal; in ext4_force_commit() local
5297 journal = EXT4_SB(sb)->s_journal; in ext4_force_commit()
5298 return ext4_journal_force_commit(journal); in ext4_force_commit()
5357 journal_t *journal; in ext4_freeze() local
5362 journal = EXT4_SB(sb)->s_journal; in ext4_freeze()
5364 if (journal) { in ext4_freeze()
5366 jbd2_journal_lock_updates(journal); in ext4_freeze()
5372 error = jbd2_journal_flush(journal); in ext4_freeze()
5382 if (journal) in ext4_freeze()
5384 jbd2_journal_unlock_updates(journal); in ext4_freeze()