summaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/bcachefs.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-17 09:59:17 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:58 -0400
commit0fb11e0801962007adef5b628fec0f334e5358f2 (patch)
treef7d68d18360f3c2600d572611d2457fb9bbfa066 /fs/bcachefs/bcachefs.h
parent11f117374a2a353c378f8eccff8904d209643695 (diff)
downloadlinux-stable-0fb11e0801962007adef5b628fec0f334e5358f2.tar.gz
linux-stable-0fb11e0801962007adef5b628fec0f334e5358f2.tar.bz2
linux-stable-0fb11e0801962007adef5b628fec0f334e5358f2.zip
bcachefs: Improved copygc wait debugging
This just adds a line for how long copygc has been waiting to sysfs copygc_wait, helpful for debugging why copygc isn't running. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bcachefs.h')
-rw-r--r--fs/bcachefs/bcachefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/bcachefs.h b/fs/bcachefs/bcachefs.h
index fcbbc88d77c2..db8c0e4fc5a3 100644
--- a/fs/bcachefs/bcachefs.h
+++ b/fs/bcachefs/bcachefs.h
@@ -943,6 +943,7 @@ struct bch_fs {
/* COPYGC */
struct task_struct *copygc_thread;
struct write_point copygc_write_point;
+ s64 copygc_wait_at;
s64 copygc_wait;
bool copygc_running;
wait_queue_head_t copygc_running_wq;