bcachefs: Ensure copygc does not spin
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 30 Oct 2023 17:15:36 +0000 (13:15 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sat, 4 Nov 2023 18:17:11 +0000 (14:17 -0400)
commit1f7056b735d59843faee70f504f71e1fbffc51d8
tree750329cbbdf53b838d4413141c6ab172efdef3c2
parentdc7a15fb90bf658be8289c9540c11f50993d10ff
bcachefs: Ensure copygc does not spin

If copygc does no work - finds no fragmented buckets - wait for a bit of
IO to happen.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c
fs/bcachefs/alloc_background.h
fs/bcachefs/movinggc.c
fs/bcachefs/rebalance.c