Lines Matching refs:journal

1278 	void (*j_fc_cleanup_callback)(struct journal_s *journal, int full, tid_t tid);
1291 int (*j_fc_replay_callback)(struct journal_s *journal,
1302 int (*j_bmap)(struct journal_s *journal, sector_t *block);
1435 int jbd2_journal_get_log_tail(journal_t *journal, tid_t *tid,
1437 int __jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1438 void jbd2_update_log_tail(journal_t *journal, tid_t tid, unsigned long block);
1446 void __jbd2_journal_clean_checkpoint_list(journal_t *journal, enum jbd2_shrink_type type);
1447 unsigned long jbd2_journal_shrink_checkpoint_list(journal_t *journal, unsigned long *nr_to_scan);
1450 void jbd2_journal_destroy_checkpoint(journal_t *journal);
1537 bool jbd2_journal_try_to_free_buffers(journal_t *journal, struct folio *folio);
1539 extern int jbd2_journal_flush(journal_t *journal, unsigned int flags);
1558 extern int jbd2_journal_load (journal_t *journal);
1560 extern int jbd2_journal_recover (journal_t *journal);
1581 extern int jbd2_journal_begin_ordered_truncate(journal_t *journal,
1584 extern void jbd2_journal_release_jbd_inode(journal_t *journal, struct jbd2_inode *jinode);
1648 extern void jbd2_journal_switch_revoke_table(journal_t *journal);
1649 extern void jbd2_clear_buffer_revoked_flags(journal_t *journal);
1658 int jbd2_log_start_commit(journal_t *journal, tid_t tid);
1659 int jbd2_journal_start_commit(journal_t *journal, tid_t *tid);
1660 int jbd2_log_wait_commit(journal_t *journal, tid_t tid);
1661 int jbd2_transaction_committed(journal_t *journal, tid_t tid);
1662 int jbd2_complete_transaction(journal_t *journal, tid_t tid);
1663 int jbd2_log_do_checkpoint(journal_t *journal);
1664 int jbd2_trans_will_send_data_barrier(journal_t *journal, tid_t tid);
1666 void __jbd2_log_wait_for_space(journal_t *journal);
1671 int jbd2_fc_begin_commit(journal_t *journal, tid_t tid);
1672 int jbd2_fc_end_commit(journal_t *journal);
1673 int jbd2_fc_end_commit_fallback(journal_t *journal);
1674 int jbd2_fc_get_buf(journal_t *journal, struct buffer_head **bh_out);
1675 int jbd2_submit_inode_data(journal_t *journal, struct jbd2_inode *jinode);
1676 int jbd2_wait_inode_data(journal_t *journal, struct jbd2_inode *jinode);
1677 int jbd2_fc_wait_bufs(journal_t *journal, int num_blks);
1678 void jbd2_fc_release_bufs(journal_t *journal);
1690 static inline int is_journal_aborted(journal_t *journal) in is_journal_aborted() argument
1692 return journal->j_flags & JBD2_ABORT; in is_journal_aborted()
1707 static inline void jbd2_init_fs_dev_write_error(journal_t *journal) in jbd2_init_fs_dev_write_error() argument
1709 struct address_space *mapping = journal->j_fs_dev->bd_mapping; in jbd2_init_fs_dev_write_error()
1715 errseq_check_and_advance(&mapping->wb_err, &journal->j_fs_dev_wb_err); in jbd2_init_fs_dev_write_error()
1718 static inline int jbd2_check_fs_dev_write_error(journal_t *journal) in jbd2_check_fs_dev_write_error() argument
1720 struct address_space *mapping = journal->j_fs_dev->bd_mapping; in jbd2_check_fs_dev_write_error()
1723 READ_ONCE(journal->j_fs_dev_wb_err)); in jbd2_check_fs_dev_write_error()
1744 extern size_t journal_tag_bytes(journal_t *journal);
1751 static inline int jbd2_journal_has_csum_v2or3(journal_t *journal) in jbd2_journal_has_csum_v2or3() argument
1753 WARN_ON_ONCE(jbd2_journal_has_csum_v2or3_feature(journal) && in jbd2_journal_has_csum_v2or3()
1754 journal->j_chksum_driver == NULL); in jbd2_journal_has_csum_v2or3()
1756 return journal->j_chksum_driver != NULL; in jbd2_journal_has_csum_v2or3()
1769 static inline unsigned long jbd2_log_space_left(journal_t *journal) in jbd2_log_space_left() argument
1772 long free = journal->j_free - 32; in jbd2_log_space_left()
1774 if (journal->j_committing_transaction) { in jbd2_log_space_left()
1775 free -= atomic_read(&journal-> in jbd2_log_space_left()
1796 static inline u32 jbd2_chksum(journal_t *journal, u32 crc, in jbd2_chksum() argument
1805 BUG_ON(crypto_shash_descsize(journal->j_chksum_driver) > in jbd2_chksum()
1808 desc.shash.tfm = journal->j_chksum_driver; in jbd2_chksum()
1818 static inline tid_t jbd2_get_latest_transaction(journal_t *journal) in jbd2_get_latest_transaction() argument
1822 read_lock(&journal->j_state_lock); in jbd2_get_latest_transaction()
1823 tid = journal->j_commit_request; in jbd2_get_latest_transaction()
1824 if (journal->j_running_transaction) in jbd2_get_latest_transaction()
1825 tid = journal->j_running_transaction->t_tid; in jbd2_get_latest_transaction()
1826 read_unlock(&journal->j_state_lock); in jbd2_get_latest_transaction()
1832 journal_t *journal; in jbd2_handle_buffer_credits() local
1835 journal = handle->h_transaction->t_journal; in jbd2_handle_buffer_credits()
1837 journal = handle->h_journal; in jbd2_handle_buffer_credits()
1841 journal->j_revoke_records_per_block); in jbd2_handle_buffer_credits()