summaryrefslogtreecommitdiff
path: root/fs/bcachefs/movinggc.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-01-07 05:38:08 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:22 +0300
commitacc3e09b67a350bc9ce6dc9d0d96cc398a850e7c (patch)
treecbb9ba112b1b69519227b78c81113cd252adaa54 /fs/bcachefs/movinggc.c
parenta74313481ae24cd301b79b5fca3161079e739a21 (diff)
downloadlinux-acc3e09b67a350bc9ce6dc9d0d96cc398a850e7c.tar.xz
bcachefs: Rename data_op_data_progress -> data_jobs
Mild refactoring. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/movinggc.c')
-rw-r--r--fs/bcachefs/movinggc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/bcachefs/movinggc.c b/fs/bcachefs/movinggc.c
index 46a0875135d5..4791e5099d93 100644
--- a/fs/bcachefs/movinggc.c
+++ b/fs/bcachefs/movinggc.c
@@ -231,8 +231,11 @@ static int bch2_copygc(struct bch_fs *c)
buckets_to_move = h->used;
- if (!buckets_to_move)
+ if (!buckets_to_move) {
+ bch_err_ratelimited(c, "copygc cannot run - sectors_reserved %llu!",
+ sectors_reserved);
return 0;
+ }
eytzinger0_sort(h->data, h->used,
sizeof(h->data[0]),