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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libbcachefs/btree_gc.h b/libbcachefs/btree_gc.h
index 1905acfa..df51eb83 100644
--- a/libbcachefs/btree_gc.h
+++ b/libbcachefs/btree_gc.h
@@ -7,7 +7,6 @@ void bch2_coalesce(struct bch_fs *);
int bch2_gc(struct bch_fs *, struct list_head *, bool);
void bch2_gc_thread_stop(struct bch_fs *);
int bch2_gc_thread_start(struct bch_fs *);
-int bch2_initial_gc(struct bch_fs *, struct list_head *);
void bch2_mark_dev_superblock(struct bch_fs *, struct bch_dev *, unsigned);
/*
@@ -109,7 +108,7 @@ static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos)
do {
seq = read_seqcount_begin(&c->gc_pos_lock);
- ret = gc_pos_cmp(pos, c->gc_pos) < 0;
+ ret = gc_pos_cmp(pos, c->gc_pos) <= 0;
} while (read_seqcount_retry(&c->gc_pos_lock, seq));
return ret;