diff options
author | Brett Holman <bholman.devel@gmail.com> | 2021-07-23 21:57:19 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:09:10 +0200 |
commit | 8dd6ed9451894e2168328e2203d227303b472ca3 (patch) | |
tree | 8b2b411aa819dbd93a8b584dd6411f5a0890d251 /fs/bcachefs/movinggc.c | |
parent | bcachefs: Fix 32 bit build failures (diff) | |
download | linux-8dd6ed9451894e2168328e2203d227303b472ca3.tar.xz linux-8dd6ed9451894e2168328e2203d227303b472ca3.zip |
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.c | 3 |
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, |