Lines Matching refs:journal

30 static inline bool journal_seq_unwritten(struct journal *j, u64 seq)  in journal_seq_unwritten()
40 static inline unsigned nr_unwritten_journal_entries(struct journal *j) in nr_unwritten_journal_entries()
45 static bool journal_entry_is_open(struct journal *j) in journal_entry_is_open()
50 static void bch2_journal_buf_to_text(struct printbuf *out, struct journal *j, u64 seq) in bch2_journal_buf_to_text()
88 static void bch2_journal_bufs_to_text(struct printbuf *out, struct journal *j) in bch2_journal_bufs_to_text()
101 journal_seq_to_buf(struct journal *j, u64 seq) in journal_seq_to_buf()
137 journal_error_check_stuck(struct journal *j, int error, unsigned flags) in journal_error_check_stuck()
139 struct bch_fs *c = container_of(j, struct bch_fs, journal); in journal_error_check_stuck()
186 void bch2_journal_do_writes(struct journal *j) in bch2_journal_do_writes()
213 void bch2_journal_buf_put_final(struct journal *j, u64 seq) in bch2_journal_buf_put_final()
228 static void __journal_entry_close(struct journal *j, unsigned closed_val, bool trace) in __journal_entry_close()
230 struct bch_fs *c = container_of(j, struct bch_fs, journal); in __journal_entry_close()
304 void bch2_journal_halt(struct journal *j) in bch2_journal_halt()
314 static bool journal_entry_want_write(struct journal *j) in journal_entry_want_write()
334 bool bch2_journal_entry_close(struct journal *j) in bch2_journal_entry_close()
349 static int journal_entry_open(struct journal *j) in journal_entry_open()
351 struct bch_fs *c = container_of(j, struct bch_fs, journal); in journal_entry_open()
462 static bool journal_quiesced(struct journal *j) in journal_quiesced()
471 static void journal_quiesce(struct journal *j) in journal_quiesce()
478 struct journal *j = container_of(work, struct journal, write_work.work); in journal_write_work()
492 static int __journal_res_get(struct journal *j, struct journal_res *res, in __journal_res_get()
495 struct bch_fs *c = container_of(j, struct bch_fs, journal); in __journal_res_get()
601 int bch2_journal_res_get_slowpath(struct journal *j, struct journal_res *res, in bch2_journal_res_get_slowpath()
612 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_res_get_slowpath()
627 void bch2_journal_entry_res_resize(struct journal *j, in bch2_journal_entry_res_resize()
672 int bch2_journal_flush_seq_async(struct journal *j, u64 seq, in bch2_journal_flush_seq_async()
761 int bch2_journal_flush_seq(struct journal *j, u64 seq, unsigned task_state) in bch2_journal_flush_seq()
786 void bch2_journal_flush_async(struct journal *j, struct closure *parent) in bch2_journal_flush_async()
791 int bch2_journal_flush(struct journal *j) in bch2_journal_flush()
800 bool bch2_journal_noflush_seq(struct journal *j, u64 seq) in bch2_journal_noflush_seq()
802 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_noflush_seq()
809 if (seq <= c->journal.flushed_seq_ondisk) in bch2_journal_noflush_seq()
813 if (seq <= c->journal.flushed_seq_ondisk) in bch2_journal_noflush_seq()
834 int bch2_journal_meta(struct journal *j) in bch2_journal_meta()
861 void bch2_journal_unblock(struct journal *j) in bch2_journal_unblock()
870 void bch2_journal_block(struct journal *j) in bch2_journal_block()
879 static struct journal_buf *__bch2_next_write_buffer_flush_journal_buf(struct journal *j, u64 max_se… in __bch2_next_write_buffer_flush_journal_buf()
915 struct journal_buf *bch2_next_write_buffer_flush_journal_buf(struct journal *j, u64 max_seq) in bch2_next_write_buffer_flush_journal_buf()
929 struct journal_device *ja = &ca->journal; in __bch2_set_nr_journal_buckets()
982 bch2_journal_flush_all_pins(&c->journal); in __bch2_set_nr_journal_buckets()
983 bch2_journal_block(&c->journal); in __bch2_set_nr_journal_buckets()
1017 spin_lock(&c->journal.lock); in __bch2_set_nr_journal_buckets()
1033 spin_unlock(&c->journal.lock); in __bch2_set_nr_journal_buckets()
1036 bch2_journal_unblock(&c->journal); in __bch2_set_nr_journal_buckets()
1065 struct journal_device *ja = &ca->journal; in bch2_set_nr_journal_buckets()
1143 if (ca->journal.nr) in bch2_fs_journal_alloc()
1158 static bool bch2_journal_writing_to_device(struct journal *j, unsigned dev_idx) in bch2_journal_writing_to_device()
1177 void bch2_dev_journal_stop(struct journal *j, struct bch_dev *ca) in bch2_dev_journal_stop()
1182 void bch2_fs_journal_stop(struct journal *j) in bch2_fs_journal_stop()
1211 int bch2_fs_journal_start(struct journal *j, u64 cur_seq) in bch2_fs_journal_start()
1213 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_fs_journal_start()
1300 struct journal_device *ja = &ca->journal; in bch2_dev_journal_exit()
1315 struct journal_device *ja = &ca->journal; in bch2_dev_journal_init()
1317 bch2_sb_field_get(sb, journal); in bch2_dev_journal_init()
1369 void bch2_fs_journal_exit(struct journal *j) in bch2_fs_journal_exit()
1381 int bch2_fs_journal_init(struct journal *j) in bch2_fs_journal_init()
1430 void __bch2_journal_debug_to_text(struct printbuf *out, struct journal *j) in __bch2_journal_debug_to_text()
1432 struct bch_fs *c = container_of(j, struct bch_fs, journal); in __bch2_journal_debug_to_text()
1502 struct journal_device *ja = &ca->journal; in __bch2_journal_debug_to_text()
1527 void bch2_journal_debug_to_text(struct printbuf *out, struct journal *j) in bch2_journal_debug_to_text()
1534 bool bch2_journal_seq_pins_to_text(struct printbuf *out, struct journal *j, u64 *seq) in bch2_journal_seq_pins_to_text()
1577 void bch2_journal_pins_to_text(struct printbuf *out, struct journal *j) in bch2_journal_pins_to_text()