bcachefs: Fix bch2_mount error path
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 18 Aug 2023 21:44:21 +0000 (17:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:11 +0000 (17:10 -0400)
commit7573041ab958a14407621ef9756be49548f937e6
treee795b75460ee083d3dc06190ce1d9c1b640f68d1
parentadc0e9509184da7204397f4d0410b61f75bac706
bcachefs: Fix bch2_mount error path

In the bch2_mount() error path, we were calling
deactivate_locked_super(), which calls ->kill_sb(), which in our case
was calling bch2_fs_free() without __bch2_fs_stop().

This changes bch2_mount() to just call bch2_fs_stop() directly.

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