f2fs: fix remount problem of option io_bits
authorChengguang Xu <cgxu519@gmx.com>
Sat, 22 Sep 2018 14:43:09 +0000 (22:43 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 26 Sep 2018 01:44:56 +0000 (18:44 -0700)
Currently we show mount option "io_bits=%u" as "io_size=%uKB",
it will cause option parsing problem(unrecognized mount option)
in remount.

Signed-off-by: Chengguang Xu <cgxu519@gmx.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index c112403b3ca77f1b1905471139420235a59a20d6..c47b1ef2685a4143a504575a3898cd0974847d7a 100644 (file)
@@ -1330,7 +1330,8 @@ static int f2fs_show_options(struct seq_file *seq, struct dentry *root)
                                from_kgid_munged(&init_user_ns,
                                        F2FS_OPTION(sbi).s_resgid));
        if (F2FS_IO_SIZE_BITS(sbi))
-               seq_printf(seq, ",io_size=%uKB", F2FS_IO_SIZE_KB(sbi));
+               seq_printf(seq, ",io_bits=%u",
+                               F2FS_OPTION(sbi).write_io_size_bits);
 #ifdef CONFIG_F2FS_FAULT_INJECTION
        if (test_opt(sbi, FAULT_INJECTION)) {
                seq_printf(seq, ",fault_injection=%u",