bcachefs: Kill incorrect assertion
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 11 Sep 2023 18:34:56 +0000 (14:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:12 +0000 (17:10 -0400)
In the bch2_fs_alloc() error path we call bch2_fs_free() without setting
BCH_FS_STOPPING - this is fine.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c

index 1b1a9e539f6519fb70a0e927789ee50e455a1c87..7cfc04947717c413f5de30cd3b01ea6d4df60e69 100644 (file)
@@ -585,8 +585,6 @@ 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);