Searched refs:clock (Results 1 – 10 of 10) sorted by relevance
| /fs/bcachefs/ |
| A D | clock.c | 24 spin_lock(&clock->timer_lock); in bch2_io_timer_add() 27 spin_unlock(&clock->timer_lock); in bch2_io_timer_add() 38 spin_unlock(&clock->timer_lock); in bch2_io_timer_add() 43 spin_lock(&clock->timer_lock); in bch2_io_timer_del() 51 spin_unlock(&clock->timer_lock); in bch2_io_timer_del() 122 if (clock->timers.nr && in get_expired_timer() 162 free_heap(&clock->timers); in bch2_io_clock_exit() 163 free_percpu(clock->pcpu_buf); in bch2_io_clock_exit() 168 atomic64_set(&clock->now, 0); in bch2_io_clock_init() 173 clock->pcpu_buf = alloc_percpu(*clock->pcpu_buf); in bch2_io_clock_init() [all …]
|
| A D | clock.h | 15 struct io_clock *clock = &c->io_clock[rw]; in bch2_increment_clock() local 17 if (unlikely(this_cpu_add_return(*clock->pcpu_buf, sectors) >= in bch2_increment_clock() 19 __bch2_increment_clock(clock, this_cpu_xchg(*clock->pcpu_buf, 0)); in bch2_increment_clock()
|
| A D | sb-clean.c | 202 struct jset_entry_clock *clock = in bch2_journal_super_entries_add_common() local 203 container_of(jset_entry_init(end, sizeof(*clock)), in bch2_journal_super_entries_add_common() 206 clock->entry.type = BCH_JSET_ENTRY_clock; in bch2_journal_super_entries_add_common() 207 clock->rw = i; in bch2_journal_super_entries_add_common() 208 clock->time = cpu_to_le64(atomic64_read(&c->io_clock[i].now)); in bch2_journal_super_entries_add_common()
|
| A D | movinggc.c | 349 struct io_clock *clock = &c->io_clock[WRITE]; in bch2_copygc_thread() local 393 last = atomic64_read(&clock->now); in bch2_copygc_thread() 396 if (wait > clock->max_slop) { in bch2_copygc_thread() 401 bch2_kthread_io_clock_wait(clock, last + wait, in bch2_copygc_thread() 421 bch2_kthread_io_clock_wait(clock, last + (min_member_capacity >> 6), in bch2_copygc_thread()
|
| A D | Makefile | 29 clock.o \
|
| A D | rebalance.c | 513 struct io_clock *clock = &c->io_clock[WRITE]; in rebalance_wait() local 514 u64 now = atomic64_read(&clock->now); in rebalance_wait() 528 bch2_kthread_io_clock_wait_once(clock, r->wait_iotime_end, MAX_SCHEDULE_TIMEOUT); in rebalance_wait()
|
| A D | journal_io.c | 661 struct jset_entry_clock *clock = in journal_entry_clock_validate() local 666 if (journal_entry_err_on(bytes != sizeof(*clock), in journal_entry_clock_validate() 674 if (journal_entry_err_on(clock->rw > 1, in journal_entry_clock_validate() 689 struct jset_entry_clock *clock = in journal_entry_clock_to_text() local 692 prt_printf(out, "%s=%llu", str_write_read(clock->rw), le64_to_cpu(clock->time)); in journal_entry_clock_to_text()
|
| A D | recovery.c | 553 struct jset_entry_clock *clock = in journal_replay_entry_early() local 556 atomic64_set(&c->io_clock[clock->rw].now, le64_to_cpu(clock->time)); in journal_replay_entry_early()
|
| A D | bcachefs_format.h | 1168 x(clock, 7) \
|
| /fs/proc/ |
| A D | base.c | 1659 char clock[10]; in timens_offsets_write() local 1671 err = sscanf(pos, "%9s %lld %lu", clock, in timens_offsets_write() 1676 clock[sizeof(clock) - 1] = 0; in timens_offsets_write() 1677 if (strcmp(clock, "monotonic") == 0 || in timens_offsets_write() 1678 strcmp(clock, __stringify(CLOCK_MONOTONIC)) == 0) in timens_offsets_write() 1680 else if (strcmp(clock, "boottime") == 0 || in timens_offsets_write() 1681 strcmp(clock, __stringify(CLOCK_BOOTTIME)) == 0) in timens_offsets_write()
|
Completed in 27 milliseconds