diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-08-27 18:48:36 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:39 +0200 |
commit | 674cfc26240b7807f078a23a4f04681ccae49b02 (patch) | |
tree | 16927f0b64915bb2aa8f3e4ff441712dfd783a8b /fs/bcachefs/journal_reclaim.c | |
parent | bcachefs: Fix bch2_btree_update_start() to return -BCH_ERR_journal_reclaim_wo... (diff) | |
download | linux-674cfc26240b7807f078a23a4f04681ccae49b02.tar.xz linux-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/journal_reclaim.c')
-rw-r--r-- | fs/bcachefs/journal_reclaim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/journal_reclaim.c b/fs/bcachefs/journal_reclaim.c index 00d9e3a8e526..a4f9d01d33cc 100644 --- a/fs/bcachefs/journal_reclaim.c +++ b/fs/bcachefs/journal_reclaim.c @@ -642,7 +642,8 @@ static int __bch2_journal_reclaim(struct journal *j, bool direct, bool kicked) min_key_cache = min(bch2_nr_btree_keys_need_flush(c), (size_t) 128); - trace_journal_reclaim_start(c, direct, kicked, + trace_and_count(c, journal_reclaim_start, c, + direct, kicked, min_nr, min_key_cache, j->prereserved.reserved, j->prereserved.remaining, @@ -658,7 +659,7 @@ static int __bch2_journal_reclaim(struct journal *j, bool direct, bool kicked) j->nr_direct_reclaim += nr_flushed; else j->nr_background_reclaim += nr_flushed; - trace_journal_reclaim_finish(c, nr_flushed); + trace_and_count(c, journal_reclaim_finish, c, nr_flushed); if (nr_flushed) wake_up(&j->reclaim_wait); |