bcachefs: Implement a new gc that only recalcs oldest gen
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 15 Jun 2020 19:10:54 +0000 (15:10 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:08:41 +0000 (17:08 -0400)
commit451570a5bc5f72c4c6442631d158f0c11cb3daa8
tree2074e87c258941bc52261f4400ebd2ed65945e81
parent1ada160618d66bc57beacb4c35f13e9a4c269afa
bcachefs: Implement a new gc that only recalcs oldest gen

Full mark and sweep gc doesn't (yet?) work with the new btree key cache
code, but it also blocks updates to interior btree nodes for the
duration and isn't really necessary in practice; we aren't currently
attempting to repair errors in allocation info at runtime.

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/buckets_types.h
fs/bcachefs/sysfs.c