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

Lines Matching refs:journal

82 	journal_t *journal;
87 /* Special case here: if the journal has aborted behind our
90 journal = EXT3_SB(sb)->s_journal;
91 if (is_journal_aborted(journal)) {
93 "Detected aborted journal");
97 return journal_start(journal, nblocks);
162 * writing it out straight away; and given that the journal is about to
167 * the journal instead. On recovery, the journal will complain about
182 journal_t *journal = EXT3_SB(sb)->s_journal;
185 if (journal)
186 journal_abort(journal, -EIO);
271 * as journal IO errors or ENOMEM at a critical moment in log management.
343 * Open the external journal device
356 ext3_msg(sb, "error: failed to open journal device %s: %ld",
363 * Release the journal device
421 ext3_abort(sb, __func__, "Couldn't clean up the journal");
454 * Invalidate the journal device's buffers. We don't want them
455 * floating about in memory - the physical journal device may
570 return "journal";
711 * mapped via the block device. Since these pages could have journal heads
718 journal_t *journal = EXT3_SB(sb)->s_journal;
723 if (journal)
724 return journal_try_to_free_buffers(journal, page,
838 {Opt_journal_update, "journal=update"},
839 {Opt_journal_inum, "journal=%u"},
842 {Opt_data_journal, "data=journal"},
1062 a journal file here. For now, only allow the
1064 journal file. */
1067 "journal on remount");
1075 "journal on remount");
1085 "journal on remount");
1339 ext3_msg(sb, KERN_INFO, "using external journal on %s",
1342 ext3_msg(sb, KERN_INFO, "using internal journal");
1924 * The first inode we look at is the journal inode. Don't try
1925 * root first: it may be modified in the journal!
1937 "error: no journal found. "
1956 /* We have now updated the journal if required, so we can
1960 /* No mode set, assume a default based on the journal
1961 capabilities: ORDERED_DATA if the journal can
1975 "error: journal does not support "
2016 test_opt(sb,DATA_FLAGS) == EXT3_MOUNT_JOURNAL_DATA ? "journal":
2055 * Setup any per-fs journal parameters now. We'll do this both on
2056 * initial mount, once the journal has been initialised but before we've
2059 static void ext3_init_journal_params(struct super_block *sb, journal_t *journal)
2064 journal->j_commit_interval = sbi->s_commit_interval;
2069 spin_lock(&journal->j_state_lock);
2071 journal->j_flags |= JFS_BARRIER;
2073 journal->j_flags &= ~JFS_BARRIER;
2075 journal->j_flags |= JFS_ABORT_ON_SYNCDATA_ERR;
2077 journal->j_flags &= ~JFS_ABORT_ON_SYNCDATA_ERR;
2078 spin_unlock(&journal->j_state_lock);
2085 journal_t *journal;
2093 ext3_msg(sb, KERN_ERR, "error: no journal found");
2099 ext3_msg(sb, KERN_ERR, "error: journal inode is deleted");
2106 ext3_msg(sb, KERN_ERR, "error: invalid journal inode");
2111 journal = journal_init_inode(journal_inode);
2112 if (!journal) {
2113 ext3_msg(sb, KERN_ERR, "error: could not load journal inode");
2117 journal->j_private = sb;
2118 ext3_init_journal_params(sb, journal);
2119 return journal;
2126 journal_t *journal;
2141 "error: failed to claim external journal device");
2150 "error: blocksize too small for journal device");
2159 "external journal");
2167 ext3_msg(sb, KERN_ERR, "error: external journal has "
2174 ext3_msg(sb, KERN_ERR, "error: journal UUID does not match");
2183 journal = journal_init_dev(bdev, sb->s_bdev,
2185 if (!journal) {
2187 "error: failed to create device journal");
2190 journal->j_private = sb;
2191 ll_rw_block(READ, 1, &journal->j_sb_buffer);
2192 wait_on_buffer(journal->j_sb_buffer);
2193 if (!buffer_uptodate(journal->j_sb_buffer)) {
2194 ext3_msg(sb, KERN_ERR, "I/O error on journal device");
2197 if (be32_to_cpu(journal->j_superblock->s_nr_users) != 1) {
2199 "error: external journal has more than one "
2201 be32_to_cpu(journal->j_superblock->s_nr_users));
2205 ext3_init_journal_params(sb, journal);
2206 return journal;
2208 journal_destroy(journal);
2218 journal_t *journal;
2226 ext3_msg(sb, KERN_INFO, "external journal device major/minor "
2235 * Are we loading a blank journal or performing recovery after a
2255 ext3_msg(sb, KERN_ERR, "error: filesystem has both journal "
2261 if (!(journal = ext3_get_journal(sb, journal_inum)))
2264 if (!(journal = ext3_get_dev_journal(sb, journal_dev)))
2268 if (!(journal->j_flags & JFS_BARRIER))
2272 err = journal_update_format(journal);
2274 ext3_msg(sb, KERN_ERR, "error updating journal");
2275 journal_destroy(journal);
2281 err = journal_wipe(journal, !really_read_only);
2283 err = journal_load(journal);
2286 ext3_msg(sb, KERN_ERR, "error loading journal");
2287 journal_destroy(journal);
2291 EXT3_SB(sb)->s_journal = journal;
2309 journal_t *journal;
2315 "create journal");
2319 journal = ext3_get_journal(sb, journal_inum);
2320 if (!journal)
2323 ext3_msg(sb, KERN_INFO, "creating new journal on inode %u",
2326 err = journal_create(journal);
2328 ext3_msg(sb, KERN_ERR, "error creating journal");
2329 journal_destroy(journal);
2333 EXT3_SB(sb)->s_journal = journal;
2360 * read/only but we need to replay the journal; at that point,
2386 journal_t *journal = EXT3_SB(sb)->s_journal;
2388 journal_lock_updates(journal);
2389 if (journal_flush(journal) < 0)
2399 journal_unlock_updates(journal);
2403 * If we are mounting (or read-write remounting) a filesystem whose journal
2410 journal_t *journal;
2414 journal = EXT3_SB(sb)->s_journal;
2418 * journal by a prior ext3_error() or ext3_abort()
2421 j_errno = journal_errno(journal);
2435 journal_clear_err(journal);
2445 journal_t *journal;
2451 journal = EXT3_SB(sb)->s_journal;
2452 ret = ext3_journal_force_commit(journal);
2469 * gives us a chance to flush the journal completely and mark the fs clean.
2474 journal_t *journal;
2477 journal = EXT3_SB(sb)->s_journal;
2479 /* Now we set up the journal barrier. */
2480 journal_lock_updates(journal);
2484 * to flush the journal.
2486 error = journal_flush(journal);
2499 journal_unlock_updates(journal);
2580 * to disable replay of the journal when we next remount
2871 * When we journal data on quota file, we have to flush journal to see