bcachefs: Fix error path in bch2_mount()
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 12 Nov 2023 19:15:35 +0000 (14:15 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 15 Nov 2023 04:44:43 +0000 (23:44 -0500)
commit178c4873fd06c0361d260547ce70fcdc29b74809
treef3f8b90af2c3d00fc6d85456cd99d07a6091a6dd
parentb783fc4d1366658200bf759e1010655a9e2e145c
bcachefs: Fix error path in bch2_mount()

This fixes a bug discovered by generic/388 where sb->s_fs_info was NULL
while the superblock was still active - the error path was entirely
fubar, and was trying to do something unclear and unecessary.

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