Commit 200472e9 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: Add an error message for copygc spinning

Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 74ef5b0d
......@@ -205,6 +205,11 @@ static int bch2_copygc(struct bch_fs *c)
up_read(&ca->bucket_lock);
}
if (!h->used) {
bch_err_ratelimited(c, "copygc requested to run but found no buckets to move!");
return 0;
}
/*
* Our btree node allocations also come out of RESERVE_MOVINGGC:
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment