bcachefs: Bring back metadata only gc
authorKent Overstreet <kent.overstreet@gmail.com>
Fri, 16 Apr 2021 20:54:11 +0000 (16:54 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:54 +0000 (17:08 -0400)
commit41e3778636cab27ef43e6e1b1cf3d8c2952cc77a
tree2cec4b3a5d702e3da4b8dc4c4d523a1cb90784ab
parent98f2197de49b8eb038909e709c79c13178022dda
bcachefs: Bring back metadata only gc

This is useful for the filesystem dump debugging tool - when we're
hitting bugs we want to skip as much of the recovery process as
possible, and the dump tool only needs to know where metadata lives.

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