diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-06-15 15:10:54 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:41 -0400 |
commit | 451570a5bc5f72c4c6442631d158f0c11cb3daa8 (patch) | |
tree | 2074e87c258941bc52261f4400ebd2ed65945e81 /fs/bcachefs/btree_gc.h | |
parent | 1ada160618d66bc57beacb4c35f13e9a4c269afa (diff) | |
download | linux-451570a5bc5f72c4c6442631d158f0c11cb3daa8.tar.gz linux-451570a5bc5f72c4c6442631d158f0c11cb3daa8.tar.bz2 linux-451570a5bc5f72c4c6442631d158f0c11cb3daa8.zip |
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>
Diffstat (limited to 'fs/bcachefs/btree_gc.h')
-rw-r--r-- | fs/bcachefs/btree_gc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/btree_gc.h b/fs/bcachefs/btree_gc.h index 3966d5e54cfd..3694a3df62a8 100644 --- a/fs/bcachefs/btree_gc.h +++ b/fs/bcachefs/btree_gc.h @@ -8,6 +8,7 @@ void bch2_coalesce(struct bch_fs *); struct journal_keys; int bch2_gc(struct bch_fs *, struct journal_keys *, bool, bool); +int bch2_gc_gens(struct bch_fs *); void bch2_gc_thread_stop(struct bch_fs *); int bch2_gc_thread_start(struct bch_fs *); void bch2_mark_dev_superblock(struct bch_fs *, struct bch_dev *, unsigned); |