diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-06-02 16:36:11 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:40 -0400 |
commit | 495aabede3ff594c5eda98cb9f4463502cb48cad (patch) | |
tree | f40b651df22eba1f7aaa5e9596f4ceef0e9f8069 /fs/bcachefs/clock.c | |
parent | 61fc3c9610e4728c22e5be67a45d0520b1a388cf (diff) |
bcachefs: Add debug code to print btree transactions
Intented to help debug deadlocks, since we can't use lockdep to check
btree node lock ordering.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/clock.c')
-rw-r--r-- | fs/bcachefs/clock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/clock.c b/fs/bcachefs/clock.c index 51286520c5c7..163058173252 100644 --- a/fs/bcachefs/clock.c +++ b/fs/bcachefs/clock.c @@ -162,7 +162,7 @@ ssize_t bch2_io_timers_show(struct io_clock *clock, char *buf) now = atomic_long_read(&clock->now); for (i = 0; i < clock->timers.used; i++) - pr_buf(&out, "%pf:\t%li\n", + pr_buf(&out, "%ps:\t%li\n", clock->timers.data[i]->fn, clock->timers.data[i]->expire - now); spin_unlock(&clock->timer_lock); |