]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - libbcachefs/super.c
Update bcachefs sources to e7f6215768 bcachefs: Fix snapshot_skiplist_good()
[bcachefs-tools-debian] / libbcachefs / super.c
index 48670c8b56aaeeddb7b85f46151c80e8467ea375..e7dbc31be36d84f9b91f77cf348e072bf60932f1 100644 (file)
@@ -581,6 +581,8 @@ void bch2_fs_free(struct bch_fs *c)
 {
        unsigned i;
 
+       BUG_ON(!test_bit(BCH_FS_STOPPING, &c->flags));
+
        mutex_lock(&bch_fs_list_lock);
        list_del(&c->list);
        mutex_unlock(&bch_fs_list_lock);