diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 14:34:56 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:12 -0400 |
commit | 39791d7de2833ca4dae0061017621ca562748306 (patch) | |
tree | 74671565883f94bd76215ffc7e2d14c98750b088 | |
parent | e46c181af9e230c4c5dbc701fdadc295d6191eec (diff) |
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 <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
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); |