Commit ef1634f0 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Print version, options earlier in startup path

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 60a5b898
......@@ -883,7 +883,7 @@ static void print_mount_opts(struct bch_fs *c)
struct printbuf p = PRINTBUF;
bool first = true;
prt_str(&p, "mounted version ");
prt_str(&p, "mounting version ");
bch2_version_to_text(&p, c->sb.version);
if (c->opts.read_only) {
......@@ -919,6 +919,8 @@ int bch2_fs_start(struct bch_fs *c)
unsigned i;
int ret;
print_mount_opts(c);
down_write(&c->state_lock);
BUG_ON(test_bit(BCH_FS_STARTED, &c->flags));
......@@ -972,7 +974,6 @@ int bch2_fs_start(struct bch_fs *c)
goto err;
}
print_mount_opts(c);
ret = 0;
out:
up_write(&c->state_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment