Home
last modified time | relevance | path

Searched refs:io_clock (Results 1 – 12 of 12) sorted by relevance

/linux-6.15/fs/bcachefs/
H A Dclock.h5 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 Dclock.c22 void bch2_io_timer_add(struct io_clock *clock, struct io_timer *timer) in bch2_io_timer_add()
41 void bch2_io_timer_del(struct io_clock *clock, struct io_timer *timer) in bch2_io_timer_del()
79 void bch2_io_clock_schedule_timeout(struct io_clock *clock, u64 until) in bch2_io_clock_schedule_timeout()
93 void bch2_kthread_io_clock_wait(struct io_clock *clock, in bch2_kthread_io_clock_wait()
129 static struct io_timer *get_expired_timer(struct io_clock *clock, u64 now) in get_expired_timer()
142 void __bch2_increment_clock(struct io_clock *clock, u64 sectors) in __bch2_increment_clock()
153 void bch2_io_timers_to_text(struct printbuf *out, struct io_clock *clock) in bch2_io_timers_to_text()
171 void bch2_io_clock_exit(struct io_clock *clock) in bch2_io_clock_exit()
177 int bch2_io_clock_init(struct io_clock *clock) in bch2_io_clock_init()
H A Dmovinggc.c312 atomic64_read(&c->io_clock[WRITE].now)) << 9); in bch2_copygc_wait_to_text()
317 atomic64_read(&c->io_clock[WRITE].now) - in bch2_copygc_wait_to_text()
342 struct io_clock *clock = &c->io_clock[WRITE]; in bch2_copygc_thread()
H A Dclock_types.h29 struct io_clock { struct
H A Drebalance.c491 struct io_clock *clock = &c->io_clock[WRITE]; in rebalance_wait()
625 u64 now = atomic64_read(&c->io_clock[WRITE].now); in bch2_rebalance_status_to_text()
H A Dbcachefs.h915 struct io_clock io_clock[2]; member
1232 return max(1ULL, (u64) atomic64_read(&c->io_clock[rw].now) & LRU_TIME_MAX); in bch2_current_io_time()
H A Dsb-clean.c208 clock->time = cpu_to_le64(atomic64_read(&c->io_clock[i].now)); in bch2_journal_super_entries_add_common()
H A Dsysfs.c364 bch2_io_timers_to_text(out, &c->io_clock[READ]); in SHOW()
367 bch2_io_timers_to_text(out, &c->io_clock[WRITE]); in SHOW()
H A Dsuper.c567 bch2_io_clock_exit(&c->io_clock[WRITE]); in __bch2_fs_free()
568 bch2_io_clock_exit(&c->io_clock[READ]); in __bch2_fs_free()
910 bch2_io_clock_init(&c->io_clock[READ]) ?: in bch2_fs_alloc()
911 bch2_io_clock_init(&c->io_clock[WRITE]) ?: in bch2_fs_alloc()
H A Drecovery.c523 atomic64_set(&c->io_clock[clock->rw].now, le64_to_cpu(clock->time)); in journal_replay_entry_early()
H A Dbtree_gc.c910 a->v.io_time[READ] = max_t(u64, 1, atomic64_read(&c->io_clock[READ].now)); in bch2_alloc_write_key()
H A Dalloc_foreground.c476 c->copygc_wait - atomic64_read(&c->io_clock[WRITE].now)); in trace_bucket_alloc2()