bcachefs: Fix order of gc_done passes
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 10 Mar 2024 20:29:06 +0000 (16:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 14 Mar 2024 01:22:26 +0000 (21:22 -0400)
commitb6fc661f098631f4a4db43f47ce8d678350fc9ca
treea44ed11b5473a89cbfe178fed180101ee968b9fc
parent06ebc48306acc36ecb4d2eeb41fc719de4aaf442
bcachefs: Fix order of gc_done passes

gc_stripes_done() and gc_reflink_done() may do alloc btree updates (i.e.
when deleting an indirect extent) - we need bucket gens to be fixed by
then.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/btree_gc.c