diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-21 01:09:26 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:08 +0300 |
commit | ef1634f0f19d676483888c2a05d7e406b366d2db (patch) | |
tree | db46a7a5b78bc3cf869953d58ce1b9bf33620bc3 /fs/bcachefs/super.c | |
parent | 60a5b898007d766d6180ca101634bf7cad98d82f (diff) | |
download | linux-ef1634f0f19d676483888c2a05d7e406b366d2db.tar.xz |
bcachefs: Print version, options earlier in startup path
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 63e9dafa8395..c17fdcd08390 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -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); |