diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-08-27 12:48:36 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:39 -0400 |
commit | 674cfc26240b7807f078a23a4f04681ccae49b02 (patch) | |
tree | 16927f0b64915bb2aa8f3e4ff441712dfd783a8b /fs/bcachefs/movinggc.c | |
parent | d97e6aaed60a9c2c727cce2979ca311fe232163f (diff) | |
download | linux-stable-674cfc26240b7807f078a23a4f04681ccae49b02.tar.gz linux-stable-674cfc26240b7807f078a23a4f04681ccae49b02.tar.bz2 linux-stable-674cfc26240b7807f078a23a4f04681ccae49b02.zip |
bcachefs: Add persistent counters for all tracepoints
Also, do some reorganizing/renaming, convert atomic counters in bch_fs
to persistent counters, and add a few missing counters.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r-- | fs/bcachefs/movinggc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c index 438ea22ad5bd..dca8d4a3a89c 100644 --- a/fs/bcachefs/movinggc.c +++ b/fs/bcachefs/movinggc.c @@ -339,7 +339,7 @@ static int bch2_copygc(struct bch_fs *c) atomic64_read(&move_stats.keys_raced), atomic64_read(&move_stats.sectors_raced)); - trace_copygc(c, + trace_and_count(c, copygc, c, atomic64_read(&move_stats.sectors_moved), sectors_not_moved, buckets_to_move, buckets_not_moved); return 0; @@ -397,7 +397,7 @@ static int bch2_copygc_thread(void *arg) wait = bch2_copygc_wait_amount(c); if (wait > clock->max_slop) { - trace_copygc_wait(c, wait, last + wait); + trace_and_count(c, copygc_wait, c, wait, last + wait); c->copygc_wait = last + wait; bch2_kthread_io_clock_wait(clock, last + wait, MAX_SCHEDULE_TIMEOUT); |