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

bcachefs: Add an error message for copygc spinning

parent 74ef5b0d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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:
	 */