Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp649542imm; Sat, 22 Sep 2018 07:44:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaVL+OZlzTDxM2JviNyK6ui0ztN54egiMJBuAf9NAeeSwOZATHBvseJFkFVx7JXUUVhSsN4 X-Received: by 2002:a62:6602:: with SMTP id a2-v6mr2820273pfc.159.1537627460111; Sat, 22 Sep 2018 07:44:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537627460; cv=none; d=google.com; s=arc-20160816; b=DIv8qAuMxe2lTAcnansSKL/r1iLmqJaLn8A/mhAaHVQlwtNb61EDCDNn8GeY4fBG99 BEBejY5jK4d8aoKeR+4JIDjwo39SC4kJtSxxyEhmgojBV8b9yumEoCWcC6NnbUuZdZbG 42ivbyGbT6BTnCokFjDzFEEkKcedAn3jfbCsxUF5N1tVqo/ap7vqutUgIwRF/0aJvC/R FSBQM5F3z2XXCFy2fL4Vb1aitJNZmMdq4XUITiBXGHGfGjnkN9YkR9hG/zK13PUxK99p rB40hUN6OyUra59CWILxJlbcruV05WZZia8RWkeR7+Z1J3Q8sculoTQjmLcSNAuYcALz 8c7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=WvIa63eTeEtawojp0pmMG2CmVOFA7x2phA1X/827wvk=; b=hbToqfmHE6TPtdIRoaiyd4MaALrZfuobdRfq+8O08soTrEtbn4ixdptZWMXCUMlVC0 IS3C4oypdHNENEoQot5qz6Ith4sY9YR0/iheb2/htQ3Ug4qjj0AbUvAgGnPfsTeYdT0X 1cHBFIUnh/1rQVzWf94yhHGX21o2hLBHflHtZ8Wc1bdN6SLb20O2W4CHPaRP4LOuazEO J8dAQiQ//4WUGSH/sLygI64sBCacWpGoqeLenBw2gfd4J2Skx6DA2QVeLBsb4OZoj+c9 l+X6Lopza2c1DR5O/C/RLxKjkjbMKZld93eH1LXl7wMS5qV1TqQVYFEsvMQVfncaIO6R rxlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17-v6si28949424pgk.178.2018.09.22.07.43.50; Sat, 22 Sep 2018 07:44:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728813AbeIVUhf (ORCPT + 99 others); Sat, 22 Sep 2018 16:37:35 -0400 Received: from mout.gmx.net ([212.227.17.21]:33787 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728585AbeIVUhe (ORCPT ); Sat, 22 Sep 2018 16:37:34 -0400 Received: from localhost.localdomain ([116.30.192.174]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MdFwl-1gKz1s17LP-00IVAM; Sat, 22 Sep 2018 16:43:24 +0200 From: Chengguang Xu To: jaegeuk@kernel.org, yuchao0@huawei.com Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Chengguang Xu Subject: [f2fs-dev][PATCH] f2fs: fix remount problem of option io_bits Date: Sat, 22 Sep 2018 22:43:09 +0800 Message-Id: <20180922144309.1969-1-cgxu519@gmx.com> X-Mailer: git-send-email 2.17.1 X-Provags-ID: V03:K1:shNNiifGoSwLU16i1AXr36pmCb75vvILmbg9jFwK+/dsU4y45VW COLaXkS6uEwsPB1nZ7etMnrcFC3iIkqbiMFHQDjbm4OF70+azrLTsGuzFj/DKUrHIyLDLbq 0bzqO+YxjRLTZuszkOlKNuKyStBQoAWmhR59Aa80eF6CNhsfsUgBZFnC1mkxtBSqFFWdqos lAl8tFCoAd7zGWBYKNb2A== X-UI-Out-Filterresults: notjunk:1;V01:K0:g1ets4O9do8=:qKtf8mAOjFp2Ge2SuuH/al 56wm4zgO0AtLYpHNy8I4WZ8oSnfd7/p9VclNcdozQUKoRLTX9Fiuq/sQWWr9C4PzLzhlbUD5y ycx5k/Q52uP3Y4pOENtN9tPWE73LfnOAfpcqDRjYwlDCHtuqOLLeMqbaMb7U/xalI7utM4ZjT DN8yq9JXXPymxGxNOJrjyTFj3fbw2BSvCUpaRD7CpN6qRNUsKAzvljMGktjJJwtudYbDlZkFF aO/AHc4sSKLMmDuWVsEjJZSBe7tFhKlH3eu/KTqQ5vy36ErYP0wuvtE2902ZW+yAqgKJjasJA VipRHsqVWjSNHu5CKgMkdw20gwA3CroK+vsSiisvWic784P9nOsmjVJ3OhSmxEv92YxsNgrpL xk1EMVnGs9Gb0ooQoJRqp3GJF/R+n6JcG3hdeB4FpCJLeunDjfzV85Avc6diZeZ31WMo6rYsS 5RoJl6cyXDNSulAqhNy9129QeT42F9hK3XTXiDhmRIlmhmpQr16CiWBRGkkxTm9HA0LKsyzjo Phf5AG5c+t2OlrxqdlBAS6Gx5MmTcOUgJFxt5EGhyiZOzT70AbUAaKdaqby9xrqCamXeOADAy w4umJF36iSSIeecsexuRzEZXYRLSTSPf4snBl8GngFxuLheved/9DrTSZPwDdxzxvC/+m3S+d /BsdFhrigkJppiLv0bG7hO3MHtLCkSUVJXPDl92Wx54j3pzxrbvet/mwna+ykupJK4wjh78gs Pals4P9hH90csSAhNsMQoYAcbhsOuYKFxmyl024eIxqa6TpYr5p/D1dFNbA/4Qh69v8R6wkAh fpSl7P1Rv7SeZTt+b3G4p/BEMJawg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- fs/f2fs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 896b885f504e..8c96c4e9ee8d 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1336,7 +1336,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", -- 2.17.1