]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/btree_gc.h
New upstream release
[bcachefs-tools-debian] / libbcachefs / btree_gc.h
index 0665f5941fcc5a6196c4a80b8e7c6f5479055ca6..95d803b5743de5bb9e8bc5d58a868e9b795c27cf 100644 (file)
@@ -102,4 +102,11 @@ static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos)
        return ret;
 }
 
+static inline void bch2_do_gc_gens(struct bch_fs *c)
+{
+       atomic_inc(&c->kick_gc);
+       if (c->gc_thread)
+               wake_up_process(c->gc_thread);
+}
+
 #endif /* _BCACHEFS_BTREE_GC_H */