summaryrefslogtreecommitdiff
path: root/libbcachefs/btree_gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/btree_gc.h')
-rw-r--r--libbcachefs/btree_gc.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/libbcachefs/btree_gc.h b/libbcachefs/btree_gc.h
index b1362a9f..e9a87394 100644
--- a/libbcachefs/btree_gc.h
+++ b/libbcachefs/btree_gc.h
@@ -4,9 +4,7 @@
#include "btree_types.h"
-void bch2_coalesce(struct bch_fs *);
-
-int bch2_gc(struct bch_fs *, bool);
+int bch2_gc(struct bch_fs *, 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 *);
@@ -92,14 +90,6 @@ static inline struct gc_pos gc_pos_btree_root(enum btree_id id)
return gc_pos_btree(id, POS_MAX, BTREE_MAX_DEPTH);
}
-static inline struct gc_pos gc_pos_alloc(struct bch_fs *c, struct open_bucket *ob)
-{
- return (struct gc_pos) {
- .phase = GC_PHASE_ALLOC,
- .pos = POS(ob ? ob - c->open_buckets : 0, 0),
- };
-}
-
static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos)
{
unsigned seq;