• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ext4/

Lines Matching defs:journal

240 	journal_t *journal;
246 /* Special case here: if the journal has aborted behind our
249 journal = EXT4_SB(sb)->s_journal;
250 if (journal) {
251 if (is_journal_aborted(journal)) {
252 ext4_abort(sb, "Detected aborted journal");
255 return jbd2_journal_start(journal, nblocks);
352 * writing it out straight away; and given that the journal is about to
357 * the journal instead. On recovery, the journal will complain about
367 journal_t *journal = EXT4_SB(sb)->s_journal;
370 if (journal)
371 jbd2_journal_abort(journal, -EIO);
508 * as journal IO errors or ENOMEM at a critical moment in log management.
600 * journal has been aborted. We return 1 as a hint to callers
637 * Open the external journal device
650 ext4_msg(sb, KERN_ERR, "failed to open journal device %s: %ld",
656 * Release the journal device
720 ext4_abort(sb, "Couldn't clean up the journal");
767 * Invalidate the journal device's buffers. We don't want them
768 * floating about in memory - the physical journal device may
1017 * journal mode get enabled in different ways
1021 seq_puts(seq, ",data=journal");
1100 * mapped via the block device. Since these pages could have journal heads
1107 journal_t *journal = EXT4_SB(sb)->s_journal;
1112 if (journal)
1113 return jbd2_journal_try_to_free_buffers(journal, page,
1254 {Opt_journal_update, "journal=update"},
1259 {Opt_data_journal, "data=journal"},
1499 a journal file here. For now, only allow the
1501 journal file. */
1504 "Cannot specify journal on remount");
1512 "Cannot specify journal on remount");
2956 * The first inode we look at is the journal inode. Don't try
2957 * root first: it may be modified in the journal!
2965 ext4_msg(sb, KERN_ERR, "required journal recovery "
2979 ext4_msg(sb, KERN_ERR, "Failed to set 64-bit journal feature");
2998 /* We have now updated the journal if required, so we can
3002 /* No mode set, assume a default based on the journal
3003 * capabilities: ORDERED_DATA if the journal can
3158 descr = "out journal";
3224 * Setup any per-fs journal parameters now. We'll do this both on
3225 * initial mount, once the journal has been initialised but before we've
3228 static void ext4_init_journal_params(struct super_block *sb, journal_t *journal)
3232 journal->j_commit_interval = sbi->s_commit_interval;
3233 journal->j_min_batch_time = sbi->s_min_batch_time;
3234 journal->j_max_batch_time = sbi->s_max_batch_time;
3236 write_lock(&journal->j_state_lock);
3238 journal->j_flags |= JBD2_BARRIER;
3240 journal->j_flags &= ~JBD2_BARRIER;
3242 journal->j_flags |= JBD2_ABORT_ON_SYNCDATA_ERR;
3244 journal->j_flags &= ~JBD2_ABORT_ON_SYNCDATA_ERR;
3245 write_unlock(&journal->j_state_lock);
3252 journal_t *journal;
3262 ext4_msg(sb, KERN_ERR, "no journal found");
3268 ext4_msg(sb, KERN_ERR, "journal inode is deleted");
3275 ext4_msg(sb, KERN_ERR, "invalid journal inode");
3280 journal = jbd2_journal_init_inode(journal_inode);
3281 if (!journal) {
3282 ext4_msg(sb, KERN_ERR, "Could not load journal inode");
3286 journal->j_private = sb;
3287 ext4_init_journal_params(sb, journal);
3288 return journal;
3295 journal_t *journal;
3312 "failed to claim external journal device");
3321 "blocksize too small for journal device");
3330 "external journal");
3338 ext4_msg(sb, KERN_ERR, "external journal has "
3345 ext4_msg(sb, KERN_ERR, "journal UUID does not match");
3354 journal = jbd2_journal_init_dev(bdev, sb->s_bdev,
3356 if (!journal) {
3357 ext4_msg(sb, KERN_ERR, "failed to create device journal");
3360 journal->j_private = sb;
3361 ll_rw_block(READ, 1, &journal->j_sb_buffer);
3362 wait_on_buffer(journal->j_sb_buffer);
3363 if (!buffer_uptodate(journal->j_sb_buffer)) {
3364 ext4_msg(sb, KERN_ERR, "I/O error on journal device");
3367 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) {
3368 ext4_msg(sb, KERN_ERR, "External journal has more than one "
3370 be32_to_cpu(journal->j_superblock->s_nr_users));
3374 ext4_init_journal_params(sb, journal);
3375 return journal;
3378 jbd2_journal_destroy(journal);
3388 journal_t *journal;
3398 ext4_msg(sb, KERN_INFO, "external journal device major/minor "
3407 * Are we loading a blank journal or performing recovery after a
3426 ext4_msg(sb, KERN_ERR, "filesystem has both journal "
3432 if (!(journal = ext4_get_journal(sb, journal_inum)))
3435 if (!(journal = ext4_get_dev_journal(sb, journal_dev)))
3439 if (!(journal->j_flags & JBD2_BARRIER))
3443 err = jbd2_journal_update_format(journal);
3445 ext4_msg(sb, KERN_ERR, "error updating journal");
3446 jbd2_journal_destroy(journal);
3452 err = jbd2_journal_wipe(journal, !really_read_only);
3458 err = jbd2_journal_load(journal);
3466 ext4_msg(sb, KERN_ERR, "error loading journal");
3467 jbd2_journal_destroy(journal);
3471 EXT4_SB(sb)->s_journal = journal;
3511 * read/only but we need to replay the journal; at that point,
3558 journal_t *journal = EXT4_SB(sb)->s_journal;
3561 BUG_ON(journal != NULL);
3564 jbd2_journal_lock_updates(journal);
3565 if (jbd2_journal_flush(journal) < 0)
3575 jbd2_journal_unlock_updates(journal);
3579 * If we are mounting (or read-write remounting) a filesystem whose journal
3586 journal_t *journal;
3592 journal = EXT4_SB(sb)->s_journal;
3596 * journal by a prior ext4_error() or ext4_abort()
3599 j_errno = jbd2_journal_errno(journal);
3612 jbd2_journal_clear_err(journal);
3622 journal_t *journal;
3628 journal = EXT4_SB(sb)->s_journal;
3629 if (journal) {
3631 ret = ext4_journal_force_commit(journal);
3661 * gives us a chance to flush the journal completely and mark the fs clean.
3666 journal_t *journal;
3671 journal = EXT4_SB(sb)->s_journal;
3673 /* Now we set up the journal barrier. */
3674 jbd2_journal_lock_updates(journal);
3678 * the journal.
3680 error = jbd2_journal_flush(journal);
3781 * to disable replay of the journal when we next remount
4097 * When we journal data on quota file, we have to flush journal to see