Lines Matching defs:journal

397 	journal_t *journal = EXT4_SB(inode->i_sb)->s_journal;
399 if (journal && inode == journal->j_inode)
893 * Make sure that the current journal transaction has enough credits to map
1018 * Now that we do not always journal data, we should
1019 * keep in mind whether this should always journal the
1420 /* For write_end() in data=journal mode */
2415 * mapped for various reasons, such as insufficient space or journal credits.
2458 * @handle - handle for journal operations
2729 * Just submit the page. For data=journal mode we
2794 * a transaction for special inodes like journal inode on last iput()
2833 * data=journal mode does not do delalloc so we just need to writeout /
2834 * journal already mapped buffers. On the other hand we need to commit
2836 * already in the journal (the only exception are DMA pinned pages
3045 * For data=journal writeback we could have come across pages marked
3362 * journal. If somebody makes a swapfile on an ext4 data-journaling
3365 * the original zero's written out previously to the journal and
3415 journal_t *journal = EXT4_JOURNAL(folio->mapping->host);
3425 return jbd2_journal_invalidate_folio(journal, folio, offset, length);
3439 journal_t *journal = EXT4_JOURNAL(inode);
3446 if (journal)
3447 return jbd2_journal_try_to_free_buffers(journal, folio);
3454 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal;
3456 if (journal) {
3457 if (jbd2_transaction_committed(journal,
3684 * journal credits estimation for atomic writes. We call
3799 * don't need to start a journal txn and we can directly return
3913 * For data=journal mode, folio should be marked dirty only when it was
4574 * As we work through the truncate and commit bits of it to the journal there
4579 * probably isn't), but whenever we close off and commit a journal transaction,
4580 * the contents of (the filesystem + the journal) must be consistent and
4584 * Note that at recovery time, journal replay occurs *before* the restart of
5282 journal_t *journal = EXT4_SB(sb)->s_journal;
5469 if (journal) {
5473 read_lock(&journal->j_state_lock);
5474 if (journal->j_running_transaction)
5475 transaction = journal->j_running_transaction;
5477 transaction = journal->j_committing_transaction;
5481 tid = journal->j_commit_sequence;
5482 read_unlock(&journal->j_state_lock);
5863 * In data=journal mode ext4_journalled_invalidate_folio() may fail to invalidate
5870 journal_t *journal = EXT4_SB(inode->i_sb)->s_journal;
5899 read_lock(&journal->j_state_lock);
5900 if (journal->j_committing_transaction) {
5901 commit_tid = journal->j_committing_transaction->t_tid;
5904 read_unlock(&journal->j_state_lock);
5906 jbd2_log_wait_commit(journal, commit_tid);
6137 * in data=journal mode to make pages freeable.
6354 * Calculate the journal credits for modifying the number of blocks
6371 * Calculate the journal credits for a chunk of data modification.
6376 * journal buffers for data blocks are not included here, as DIO
6377 * and fallocate do no need to journal data buffers.
6586 * have a transaction open against a different journal.
6645 journal_t *journal;
6653 * data block to the journal, change the status and then delete
6655 * from the journal and so a subsequent replay can corrupt data.
6656 * So, first we make sure that the journal is empty and that
6660 journal = EXT4_JOURNAL(inode);
6661 if (!journal)
6663 if (is_journal_aborted(journal))
6670 * Before flushing the journal and switching inode's aops, we have
6687 jbd2_journal_lock_updates(journal);
6692 * which doesn't have anything in the journal, and we know that
6700 err = jbd2_journal_flush(journal, 0);
6702 jbd2_journal_unlock_updates(journal);
6712 jbd2_journal_unlock_updates(journal);
6867 /* Start journal and allocate blocks */