diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-25 11:51:33 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-27 00:03:45 -0400 |
| commit | 686db67a8ebecdc6eb7b9ca8ef8eddb99bdf1083 (patch) | |
| tree | 50aacab733f7a2054970e9d070ba3287f2a431c3 | |
| parent | bcachefs: Fix missing commit in check_dirents (diff) | |
| download | linux-686db67a8ebecdc6eb7b9ca8ef8eddb99bdf1083.tar.gz linux-686db67a8ebecdc6eb7b9ca8ef8eddb99bdf1083.zip | |
bcachefs: Move unicode message to after the startup message
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
| -rw-r--r-- | fs/bcachefs/super.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 11579b74c640..df42a66b8bc3 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -1038,10 +1038,6 @@ static struct bch_fs *bch2_fs_alloc(struct bch_sb *sb, struct bch_opts *opts, ret = -EINVAL; goto err; } - bch_info(c, "Using encoding defined by superblock: utf8-%u.%u.%u", - unicode_major(BCH_FS_DEFAULT_UTF8_ENCODING), - unicode_minor(BCH_FS_DEFAULT_UTF8_ENCODING), - unicode_rev(BCH_FS_DEFAULT_UTF8_ENCODING)); #else if (c->sb.features & BIT_ULL(BCH_FEATURE_casefolding)) { printk(KERN_ERR "Cannot mount a filesystem with casefolding on a kernel without CONFIG_UNICODE\n"); @@ -1159,6 +1155,12 @@ int bch2_fs_start(struct bch_fs *c) print_mount_opts(c); + if (IS_ENABLED(CONFIG_UNICODE)) + bch_info(c, "Using encoding defined by superblock: utf8-%u.%u.%u", + unicode_major(BCH_FS_DEFAULT_UTF8_ENCODING), + unicode_minor(BCH_FS_DEFAULT_UTF8_ENCODING), + unicode_rev(BCH_FS_DEFAULT_UTF8_ENCODING)); + if (!bch2_fs_may_start(c)) return -BCH_ERR_insufficient_devices_to_start; |
