From 39791d7de2833ca4dae0061017621ca562748306 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 11 Sep 2023 14:34:56 -0400 Subject: bcachefs: Kill incorrect assertion 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 --- fs/bcachefs/super.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'fs/bcachefs') diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 1b1a9e539f65..7cfc04947717 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -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); -- cgit