bcachefs: fix mount error path
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 28 Mar 2024 05:20:36 +0000 (01:20 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Apr 2024 00:36:10 +0000 (20:36 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs.c

index 0ccee05..b5ea9fa 100644 (file)
@@ -1997,6 +1997,7 @@ out:
        return dget(sb->s_root);
 
 err_put_super:
+       __bch2_fs_stop(c);
        deactivate_locked_super(sb);
        return ERR_PTR(bch2_err_class(ret));
 }