Lines Matching refs:journal

1294 	void (*j_fc_cleanup_callback)(struct journal_s *journal, int full, tid_t tid);
1307 int (*j_fc_replay_callback)(struct journal_s *journal,
1432 int jbd2_journal_get_log_tail(journal_t *journal, tid_t *tid,
1434 int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1435 void jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1441 void __jbd2_journal_clean_checkpoint_list(journal_t *journal, bool destroy);
1442 unsigned long jbd2_journal_shrink_checkpoint_list(journal_t *journal, unsigned long *nr_to_scan);
1444 void jbd2_journal_destroy_checkpoint(journal_t *journal);
1531 bool jbd2_journal_try_to_free_buffers(journal_t *journal, struct folio *folio);
1533 extern int jbd2_journal_flush(journal_t *journal, unsigned int flags);
1552 extern int jbd2_journal_load (journal_t *journal);
1554 extern int jbd2_journal_recover (journal_t *journal);
1577 extern int jbd2_journal_begin_ordered_truncate(journal_t *journal,
1580 extern void jbd2_journal_release_jbd_inode(journal_t *journal, struct jbd2_inode *jinode);
1638 extern void jbd2_journal_switch_revoke_table(journal_t *journal);
1639 extern void jbd2_clear_buffer_revoked_flags(journal_t *journal);
1648 int jbd2_log_start_commit(journal_t *journal, tid_t tid);
1649 int jbd2_journal_start_commit(journal_t *journal, tid_t *tid);
1650 int jbd2_log_wait_commit(journal_t *journal, tid_t tid);
1651 int jbd2_transaction_committed(journal_t *journal, tid_t tid);
1652 int jbd2_complete_transaction(journal_t *journal, tid_t tid);
1653 int jbd2_log_do_checkpoint(journal_t *journal);
1654 int jbd2_trans_will_send_data_barrier(journal_t *journal, tid_t tid);
1656 void __jbd2_log_wait_for_space(journal_t *journal);
1661 int jbd2_fc_begin_commit(journal_t *journal, tid_t tid);
1662 int jbd2_fc_end_commit(journal_t *journal);
1663 int jbd2_fc_end_commit_fallback(journal_t *journal);
1664 int jbd2_fc_get_buf(journal_t *journal, struct buffer_head **bh_out);
1666 int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode);
1667 int jbd2_fc_wait_bufs(journal_t *journal, int num_blks);
1668 int jbd2_fc_release_bufs(journal_t *journal);
1670 static inline int jbd2_journal_get_max_txn_bufs(journal_t *journal) in jbd2_journal_get_max_txn_bufs() argument
1672 return (journal->j_total_len - journal->j_fc_wbufsize) / 4; in jbd2_journal_get_max_txn_bufs()
1685 static inline int is_journal_aborted(journal_t *journal) in is_journal_aborted() argument
1687 return journal->j_flags & JBD2_ABORT; in is_journal_aborted()
1720 extern size_t journal_tag_bytes(journal_t *journal);
1727 static inline int jbd2_journal_has_csum_v2or3(journal_t *journal) in jbd2_journal_has_csum_v2or3() argument
1729 WARN_ON_ONCE(jbd2_journal_has_csum_v2or3_feature(journal) && in jbd2_journal_has_csum_v2or3()
1730 journal->j_chksum_driver == NULL); in jbd2_journal_has_csum_v2or3()
1732 return journal->j_chksum_driver != NULL; in jbd2_journal_has_csum_v2or3()
1745 static inline unsigned long jbd2_log_space_left(journal_t *journal) in jbd2_log_space_left() argument
1748 long free = journal->j_free - 32; in jbd2_log_space_left()
1750 if (journal->j_committing_transaction) { in jbd2_log_space_left()
1751 free -= atomic_read(&journal-> in jbd2_log_space_left()
1772 static inline u32 jbd2_chksum(journal_t *journal, u32 crc, in jbd2_chksum() argument
1781 BUG_ON(crypto_shash_descsize(journal->j_chksum_driver) > in jbd2_chksum()
1784 desc.shash.tfm = journal->j_chksum_driver; in jbd2_chksum()
1794 static inline tid_t jbd2_get_latest_transaction(journal_t *journal) in jbd2_get_latest_transaction() argument
1798 read_lock(&journal->j_state_lock); in jbd2_get_latest_transaction()
1799 tid = journal->j_commit_request; in jbd2_get_latest_transaction()
1800 if (journal->j_running_transaction) in jbd2_get_latest_transaction()
1801 tid = journal->j_running_transaction->t_tid; in jbd2_get_latest_transaction()
1802 read_unlock(&journal->j_state_lock); in jbd2_get_latest_transaction()
1808 journal_t *journal; in jbd2_handle_buffer_credits() local
1811 journal = handle->h_transaction->t_journal; in jbd2_handle_buffer_credits()
1813 journal = handle->h_journal; in jbd2_handle_buffer_credits()
1817 journal->j_revoke_records_per_block); in jbd2_handle_buffer_credits()