• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ext4/

Lines Matching refs:journal

124 	journal_t *journal;
129 /* Special case here: if the journal has aborted behind our
132 journal = EXT4_SB(sb)->s_journal;
133 if (is_journal_aborted(journal)) {
135 "Detected aborted journal");
139 return jbd2_journal_start(journal, nblocks);
192 * writing it out straight away; and given that the journal is about to
197 * the journal instead. On recovery, the journal will compain about
212 journal_t *journal = EXT4_SB(sb)->s_journal;
215 if (journal)
216 jbd2_journal_abort(journal, -EIO);
301 * as journal IO errors or ENOMEM at a critical moment in log management.
373 * Open the external journal device
386 printk(KERN_ERR "EXT4: failed to open journal device %s: %ld\n",
392 * Release the journal device
476 * Invalidate the journal device's buffers. We don't want them
477 * floating about in memory - the physical journal device may
594 seq_puts(seq, ",data=journal");
760 {Opt_journal_update, "journal=update"},
761 {Opt_journal_inum, "journal=%u"},
764 {Opt_data_journal, "data=journal"},
918 a journal file here. For now, only allow the
920 journal file. */
923 "journal on remount\n");
931 "journal on remount\n");
941 "journal on remount\n");
1209 printk("external journal on %s\n",
1212 printk("internal journal\n");
1770 * The first inode we look at is the journal inode. Don't try
1771 * root first: it may be modified in the journal!
1783 "ext4: No journal on filesystem on %s\n",
1788 /* We have now updated the journal if required, so we can
1792 /* No mode set, assume a default based on the journal
1793 * capabilities: ORDERED_DATA if the journal can
1857 test_opt(sb,DATA_FLAGS) == EXT4_MOUNT_JOURNAL_DATA ? "journal":
1897 * Setup any per-fs journal parameters now. We'll do this both on
1898 * initial mount, once the journal has been initialised but before we've
1901 static void ext4_init_journal_params(struct super_block *sb, journal_t *journal)
1906 journal->j_commit_interval = sbi->s_commit_interval;
1911 spin_lock(&journal->j_state_lock);
1913 journal->j_flags |= JBD2_BARRIER;
1915 journal->j_flags &= ~JBD2_BARRIER;
1916 spin_unlock(&journal->j_state_lock);
1923 journal_t *journal;
1931 printk(KERN_ERR "EXT4-fs: no journal found.\n");
1937 printk(KERN_ERR "EXT4-fs: journal inode is deleted.\n");
1944 printk(KERN_ERR "EXT4-fs: invalid journal inode.\n");
1949 journal = jbd2_journal_init_inode(journal_inode);
1950 if (!journal) {
1951 printk(KERN_ERR "EXT4-fs: Could not load journal inode\n");
1955 journal->j_private = sb;
1956 ext4_init_journal_params(sb, journal);
1957 return journal;
1964 journal_t *journal;
1979 "EXT4: failed to claim external journal device.\n");
1988 "EXT4-fs: blocksize too small for journal device.\n");
1997 "external journal\n");
2005 printk(KERN_ERR "EXT4-fs: external journal has "
2012 printk(KERN_ERR "EXT4-fs: journal UUID does not match\n");
2021 journal = jbd2_journal_init_dev(bdev, sb->s_bdev,
2023 if (!journal) {
2024 printk(KERN_ERR "EXT4-fs: failed to create device journal\n");
2027 journal->j_private = sb;
2028 ll_rw_block(READ, 1, &journal->j_sb_buffer);
2029 wait_on_buffer(journal->j_sb_buffer);
2030 if (!buffer_uptodate(journal->j_sb_buffer)) {
2031 printk(KERN_ERR "EXT4-fs: I/O error on journal device\n");
2034 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) {
2035 printk(KERN_ERR "EXT4-fs: External journal has more than one "
2037 be32_to_cpu(journal->j_superblock->s_nr_users));
2041 ext4_init_journal_params(sb, journal);
2042 return journal;
2044 jbd2_journal_destroy(journal);
2054 journal_t *journal;
2062 printk(KERN_INFO "EXT4-fs: external journal device major/minor "
2071 * Are we loading a blank journal or performing recovery after a
2091 printk(KERN_ERR "EXT4-fs: filesystem has both journal "
2097 if (!(journal = ext4_get_journal(sb, journal_inum)))
2100 if (!(journal = ext4_get_dev_journal(sb, journal_dev)))
2105 err = jbd2_journal_update_format(journal);
2107 printk(KERN_ERR "EXT4-fs: error updating journal.\n");
2108 jbd2_journal_destroy(journal);
2114 err = jbd2_journal_wipe(journal, !really_read_only);
2116 err = jbd2_journal_load(journal);
2119 printk(KERN_ERR "EXT4-fs: error loading journal.\n");
2120 jbd2_journal_destroy(journal);
2124 EXT4_SB(sb)->s_journal = journal;
2143 journal_t *journal;
2147 "create journal.\n");
2151 if (!(journal = ext4_get_journal(sb, journal_inum)))
2154 printk(KERN_INFO "EXT4-fs: creating new journal on inode %u\n",
2157 if (jbd2_journal_create(journal)) {
2158 printk(KERN_ERR "EXT4-fs: error creating journal.\n");
2159 jbd2_journal_destroy(journal);
2163 EXT4_SB(sb)->s_journal = journal;
2204 journal_t *journal = EXT4_SB(sb)->s_journal;
2206 jbd2_journal_lock_updates(journal);
2207 jbd2_journal_flush(journal);
2214 jbd2_journal_unlock_updates(journal);
2218 * If we are mounting (or read-write remounting) a filesystem whose journal
2225 journal_t *journal;
2229 journal = EXT4_SB(sb)->s_journal;
2233 * journal by a prior ext4_error() or ext4_abort()
2236 j_errno = jbd2_journal_errno(journal);
2250 jbd2_journal_clear_err(journal);
2260 journal_t *journal;
2266 journal = EXT4_SB(sb)->s_journal;
2268 ret = ext4_journal_force_commit(journal);
2302 * gives us a chance to flush the journal completely and mark the fs clean.
2309 journal_t *journal = EXT4_SB(sb)->s_journal;
2311 /* Now we set up the journal barrier. */
2312 jbd2_journal_lock_updates(journal);
2313 jbd2_journal_flush(journal);
2389 * to disable replay of the journal when we next remount