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

Lines Matching refs:journal

75 	journal_t *journal;
80 /* Special case here: if the journal has aborted behind our
83 journal = EXT3_SB(sb)->s_journal;
84 if (is_journal_aborted(journal)) {
86 "Detected aborted journal");
90 return journal_start(journal, nblocks);
143 * writing it out straight away; and given that the journal is about to
148 * the journal instead. On recovery, the journal will compain about
163 journal_t *journal = EXT3_SB(sb)->s_journal;
166 if (journal)
167 journal_abort(journal, -EIO);
252 * as journal IO errors or ENOMEM at a critical moment in log management.
324 * Open the external journal device
337 printk(KERN_ERR "EXT3: failed to open journal device %s: %ld\n",
343 * Release the journal device
426 * Invalidate the journal device's buffers. We don't want them
427 * floating about in memory - the physical journal device may
543 seq_puts(seq, ",data=journal");
709 {Opt_journal_update, "journal=update"},
710 {Opt_journal_inum, "journal=%u"},
713 {Opt_data_journal, "data=journal"},
866 a journal file here. For now, only allow the
868 journal file. */
871 "journal on remount\n");
879 "journal on remount\n");
889 "journal on remount\n");
1154 printk("external journal on %s\n",
1157 printk("internal journal\n");
1699 * The first inode we look at is the journal inode. Don't try
1700 * root first: it may be modified in the journal!
1712 "ext3: No journal on filesystem on %s\n",
1717 /* We have now updated the journal if required, so we can
1721 /* No mode set, assume a default based on the journal
1722 capabilities: ORDERED_DATA if the journal can
1785 test_opt(sb,DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA ? "journal":
1823 * Setup any per-fs journal parameters now. We'll do this both on
1824 * initial mount, once the journal has been initialised but before we've
1827 static void ext3_init_journal_params(struct super_block *sb, journal_t *journal)
1832 journal->j_commit_interval = sbi->s_commit_interval;
1837 spin_lock(&journal->j_state_lock);
1839 journal->j_flags |= JFS_BARRIER;
1841 journal->j_flags &= ~JFS_BARRIER;
1842 spin_unlock(&journal->j_state_lock);
1849 journal_t *journal;
1857 printk(KERN_ERR "EXT3-fs: no journal found.\n");
1863 printk(KERN_ERR "EXT3-fs: journal inode is deleted.\n");
1870 printk(KERN_ERR "EXT3-fs: invalid journal inode.\n");
1875 journal = journal_init_inode(journal_inode);
1876 if (!journal) {
1877 printk(KERN_ERR "EXT3-fs: Could not load journal inode\n");
1881 journal->j_private = sb;
1882 ext3_init_journal_params(sb, journal);
1883 return journal;
1890 journal_t *journal;
1905 "EXT3: failed to claim external journal device.\n");
1914 "EXT3-fs: blocksize too small for journal device.\n");
1923 "external journal\n");
1931 printk(KERN_ERR "EXT3-fs: external journal has "
1938 printk(KERN_ERR "EXT3-fs: journal UUID does not match\n");
1947 journal = journal_init_dev(bdev, sb->s_bdev,
1949 if (!journal) {
1950 printk(KERN_ERR "EXT3-fs: failed to create device journal\n");
1953 journal->j_private = sb;
1954 ll_rw_block(READ, 1, &journal->j_sb_buffer);
1955 wait_on_buffer(journal->j_sb_buffer);
1956 if (!buffer_uptodate(journal->j_sb_buffer)) {
1957 printk(KERN_ERR "EXT3-fs: I/O error on journal device\n");
1960 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) {
1961 printk(KERN_ERR "EXT3-fs: External journal has more than one "
1963 be32_to_cpu(journal->j_superblock->s_nr_users));
1967 ext3_init_journal_params(sb, journal);
1968 return journal;
1970 journal_destroy(journal);
1980 journal_t *journal;
1988 printk(KERN_INFO "EXT3-fs: external journal device major/minor "
1997 * Are we loading a blank journal or performing recovery after a
2017 printk(KERN_ERR "EXT3-fs: filesystem has both journal "
2023 if (!(journal = ext3_get_journal(sb, journal_inum)))
2026 if (!(journal = ext3_get_dev_journal(sb, journal_dev)))
2031 err = journal_update_format(journal);
2033 printk(KERN_ERR "EXT3-fs: error updating journal.\n");
2034 journal_destroy(journal);
2040 err = journal_wipe(journal, !really_read_only);
2042 err = journal_load(journal);
2045 printk(KERN_ERR "EXT3-fs: error loading journal.\n");
2046 journal_destroy(journal);
2050 EXT3_SB(sb)->s_journal = journal;
2069 journal_t *journal;
2073 "create journal.\n");
2077 if (!(journal = ext3_get_journal(sb, journal_inum)))
2080 printk(KERN_INFO "EXT3-fs: creating new journal on inode %u\n",
2083 if (journal_create(journal)) {
2084 printk(KERN_ERR "EXT3-fs: error creating journal.\n");
2085 journal_destroy(journal);
2089 EXT3_SB(sb)->s_journal = journal;
2130 journal_t *journal = EXT3_SB(sb)->s_journal;
2132 journal_lock_updates(journal);
2133 journal_flush(journal);
2140 journal_unlock_updates(journal);
2144 * If we are mounting (or read-write remounting) a filesystem whose journal
2151 journal_t *journal;
2155 journal = EXT3_SB(sb)->s_journal;
2159 * journal by a prior ext3_error() or ext3_abort()
2162 j_errno = journal_errno(journal);
2176 journal_clear_err(journal);
2186 journal_t *journal;
2192 journal = EXT3_SB(sb)->s_journal;
2194 ret = ext3_journal_force_commit(journal);
2228 * gives us a chance to flush the journal completely and mark the fs clean.
2235 journal_t *journal = EXT3_SB(sb)->s_journal;
2237 /* Now we set up the journal barrier. */
2238 journal_lock_updates(journal);
2239 journal_flush(journal);
2315 * to disable replay of the journal when we next remount