Searched refs:io_clock (Results 1 – 11 of 11) sorted by relevance
/linux/fs/bcachefs/ |
H A D | clock.h | 5 void bch2_io_timer_add(struct io_clock *, struct io_timer *); 6 void bch2_io_timer_del(struct io_clock *, struct io_timer *); 7 void bch2_kthread_io_clock_wait(struct io_clock *, u64, unsigned long); 9 void __bch2_increment_clock(struct io_clock *, u64); 14 struct io_clock *clock = &c->io_clock[rw]; in bch2_increment_clock() 21 void bch2_io_clock_schedule_timeout(struct io_clock *, u64); 23 void bch2_io_timers_to_text(struct printbuf *, struct io_clock *); 25 void bch2_io_clock_exit(struct io_clock *); 26 int bch2_io_clock_init(struct io_clock *);
|
H A D | clock.c | 25 void bch2_io_timer_add(struct io_clock *clock, struct io_timer *timer) in bch2_io_timer_add() 49 void bch2_io_timer_del(struct io_clock *clock, struct io_timer *timer) in bch2_io_timer_del() 92 void bch2_io_clock_schedule_timeout(struct io_clock *clock, u64 until) in bch2_io_clock_schedule_timeout() 106 void bch2_kthread_io_clock_wait(struct io_clock *clock, in bch2_kthread_io_clock_wait() 142 static struct io_timer *get_expired_timer(struct io_clock *clock, u64 now) in get_expired_timer() 159 void __bch2_increment_clock(struct io_clock *clock, u64 sectors) in __bch2_increment_clock() 170 void bch2_io_timers_to_text(struct printbuf *out, struct io_clock *clock) in bch2_io_timers_to_text() 188 void bch2_io_clock_exit(struct io_clock *clock) in bch2_io_clock_exit() 194 int bch2_io_clock_init(struct io_clock *clock) in bch2_io_clock_init()
|
H A D | movinggc.c | 306 atomic64_read(&c->io_clock[WRITE].now)) << 9); in bch2_copygc_wait_to_text() 311 atomic64_read(&c->io_clock[WRITE].now) - in bch2_copygc_wait_to_text() 325 struct io_clock *clock = &c->io_clock[WRITE]; in bch2_copygc_thread()
|
H A D | clock_types.h | 29 struct io_clock { struct
|
H A D | rebalance.c | 304 struct io_clock *clock = &c->io_clock[WRITE]; in rebalance_wait() 419 u64 now = atomic64_read(&c->io_clock[WRITE].now); in bch2_rebalance_status_to_text()
|
H A D | bcachefs.h | 902 struct io_clock io_clock[2]; member 1227 return max(1ULL, (u64) atomic64_read(&c->io_clock[rw].now) & LRU_TIME_MAX); in bch2_current_io_time()
|
H A D | sysfs.c | 386 bch2_io_timers_to_text(out, &c->io_clock[READ]); in SHOW() 389 bch2_io_timers_to_text(out, &c->io_clock[WRITE]); in SHOW()
|
H A D | sb-clean.c | 204 clock->time = cpu_to_le64(atomic64_read(&c->io_clock[i].now)); in bch2_journal_super_entries_add_common()
|
H A D | super.c | 560 bch2_io_clock_exit(&c->io_clock[WRITE]); in __bch2_fs_free() 561 bch2_io_clock_exit(&c->io_clock[READ]); in __bch2_fs_free() 912 bch2_io_clock_init(&c->io_clock[READ]) ?: in bch2_fs_alloc() 913 bch2_io_clock_init(&c->io_clock[WRITE]) ?: in bch2_fs_alloc()
|
H A D | btree_gc.c | 885 a->v.io_time[READ] = max_t(u64, 1, atomic64_read(&c->io_clock[READ].now)); in bch2_alloc_write_key()
|
H A D | alloc_foreground.c | 572 c->copygc_wait - atomic64_read(&c->io_clock[WRITE].now)); in trace_bucket_alloc2()
|