summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorBrett Holman <bholman.devel@gmail.com>2021-07-23 13:57:19 -0600
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:10 -0400
commit8dd6ed9451894e2168328e2203d227303b472ca3 (patch)
tree8b2b411aa819dbd93a8b584dd6411f5a0890d251 /fs/bcachefs/movinggc.c
parentfd0bd123d5bc11d665ad0e80eaf4b458619f8b3d (diff)
bcachefs: add progress stats to sysfs
This adds progress stats to sysfs for copygc, rebalance, recovery, and the cmd_job ioctls. Signed-off-by: Brett Holman <bholman.devel@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index 651381a5ccc5..b05dcbbd1a47 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -147,7 +147,8 @@ static int bch2_copygc(struct bch_fs *c)
size_t b, heap_size = 0;
int ret;
- memset(&move_stats, 0, sizeof(move_stats));
+ bch_move_stats_init(&move_stats, "copygc");
+
/*
* Find buckets with lowest sector counts, skipping completely
* empty buckets, by building a maxheap sorted by sector count,