bcachefs: Fix return code from bch2_fs_start()

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2019-04-22 17:47:49 -04:00 committed by Kent Overstreet
parent 44e63bcaaa
commit 9516950c06

View file

@ -897,7 +897,8 @@ int bch2_fs_start(struct bch_fs *c)
break;
}
BUG_ON(!ret);
if (ret >= 0)
ret = -EIO;
goto out;
}