Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-2
-2
fs/bcachefs/super.c
··· 585 585 { 586 586 unsigned i; 587 587 588 - BUG_ON(!test_bit(BCH_FS_STOPPING, &c->flags)); 589 - 590 588 mutex_lock(&bch_fs_list_lock); 591 589 list_del(&c->list); 592 590 mutex_unlock(&bch_fs_list_lock);