summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2021-05-26 08:03:35 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:04 +0300
commit19d2819d2d01bf46d0a12cafc532af0aab9b1cc1 (patch)
tree718e36dc832f4b9545d0a2ca30f0fd721ab20995 /fs/bcachefs/movinggc.c
parentc4d4b2f01abd95af7c6dccf236e2760aef5a9b69 (diff)
downloadlinux-19d2819d2d01bf46d0a12cafc532af0aab9b1cc1.tar.xz
bcachefs: Add a tracepoint for copygc waiting
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index e8f9d70af930..b805371fe99f 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -326,6 +326,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);
c->copygc_wait = last + wait;
bch2_kthread_io_clock_wait(clock, last + wait,
MAX_SCHEDULE_TIMEOUT);