Lines Matching refs:journal

37 unsigned bch2_journal_dev_buckets_available(struct journal *j,  in bch2_journal_dev_buckets_available()
54 void bch2_journal_set_watermark(struct journal *j) in bch2_journal_set_watermark()
56 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_set_watermark()
78 journal_dev_space_available(struct journal *j, struct bch_dev *ca, in journal_dev_space_available()
81 struct journal_device *ja = &ca->journal; in journal_dev_space_available()
134 static struct journal_space __journal_space_available(struct journal *j, unsigned nr_devs_want, in __journal_space_available()
137 struct bch_fs *c = container_of(j, struct bch_fs, journal); in __journal_space_available()
145 if (!ca->journal.nr) in __journal_space_available()
170 void bch2_journal_space_available(struct journal *j) in bch2_journal_space_available()
172 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_space_available()
184 struct journal_device *ja = &ca->journal; in bch2_journal_space_available()
255 static bool should_discard_bucket(struct journal *j, struct journal_device *ja) in should_discard_bucket()
270 void bch2_journal_do_discards(struct journal *j) in bch2_journal_do_discards()
272 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_do_discards()
277 struct journal_device *ja = &ca->journal; in bch2_journal_do_discards()
304 void bch2_journal_reclaim_fast(struct journal *j) in bch2_journal_reclaim_fast()
325 bool __bch2_journal_pin_put(struct journal *j, u64 seq) in __bch2_journal_pin_put()
332 void bch2_journal_pin_put(struct journal *j, u64 seq) in bch2_journal_pin_put()
341 static inline bool __journal_pin_drop(struct journal *j, in __journal_pin_drop()
364 void bch2_journal_pin_drop(struct journal *j, in bch2_journal_pin_drop()
384 static inline void bch2_journal_pin_set_locked(struct journal *j, u64 seq, in bch2_journal_pin_set_locked()
403 void bch2_journal_pin_copy(struct journal *j, in bch2_journal_pin_copy()
439 void bch2_journal_pin_set(struct journal *j, u64 seq, in bch2_journal_pin_set()
468 void bch2_journal_pin_flush(struct journal *j, struct journal_entry_pin *pin) in bch2_journal_pin_flush()
485 journal_get_next_pin(struct journal *j, in journal_get_next_pin()
513 static size_t journal_flush_pins(struct journal *j, in journal_flush_pins()
586 static u64 journal_seq_to_flush(struct journal *j) in journal_seq_to_flush()
588 struct bch_fs *c = container_of(j, struct bch_fs, journal); in journal_seq_to_flush()
594 struct journal_device *ja = &ca->journal; in journal_seq_to_flush()
641 static int __bch2_journal_reclaim(struct journal *j, bool direct, bool kicked) in __bch2_journal_reclaim()
643 struct bch_fs *c = container_of(j, struct bch_fs, journal); in __bch2_journal_reclaim()
717 int bch2_journal_reclaim(struct journal *j) in bch2_journal_reclaim()
724 struct journal *j = arg; in bch2_journal_reclaim_thread()
725 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_reclaim_thread()
774 void bch2_journal_reclaim_stop(struct journal *j) in bch2_journal_reclaim_stop()
786 int bch2_journal_reclaim_start(struct journal *j) in bch2_journal_reclaim_start()
788 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_reclaim_start()
808 static int journal_flush_done(struct journal *j, u64 seq_to_flush, in journal_flush_done()
844 bool bch2_journal_flush_pins(struct journal *j, u64 seq_to_flush) in bch2_journal_flush_pins()
858 int bch2_journal_flush_device_pins(struct journal *j, int dev_idx) in bch2_journal_flush_device_pins()
860 struct bch_fs *c = container_of(j, struct bch_fs, journal); in bch2_journal_flush_device_pins()
889 ret = bch2_journal_meta(&c->journal); in bch2_journal_flush_device_pins()