projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74ef5b0
)
bcachefs: Add an error message for copygc spinning
author
Kent Overstreet
<kent.overstreet@gmail.com>
Tue, 28 Dec 2021 02:28:50 +0000
(21:28 -0500)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:20 +0000
(17:09 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/movinggc.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/movinggc.c
b/fs/bcachefs/movinggc.c
index
346b9ee
..
46a0875
100644
(file)
--- a/
fs/bcachefs/movinggc.c
+++ b/
fs/bcachefs/movinggc.c
@@
-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:
*/