From: Chengguang Xu Subject: Re: [PATCH] ceph: use seq_show_option for string type options Date: Tue, 13 Feb 2018 18:55:16 +0800 Message-ID: References: <1518485459-199037-1-git-send-email-cgxu519@icloud.com> Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: quoted-printable Return-path: Received: from pv33p36im-asmtp002.me.com ([17.142.213.63]:51050 "EHLO pv33p36im-asmtp002.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934234AbeBMKze (ORCPT ); Tue, 13 Feb 2018 05:55:34 -0500 Received: from process-dkim-sign-daemon.pv33p36im-asmtp002.me.com by pv33p36im-asmtp002.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P4300A004SSDF00@pv33p36im-asmtp002.me.com> for ceph-devel@vger.kernel.org; Tue, 13 Feb 2018 10:55:22 +0000 (GMT) In-reply-to: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Ilya Dryomov Cc: "Yan, Zheng" , Ceph Development > =D4=DA 2018=C4=EA2=D4=C213=C8=D5=A3=AC=CF=C2=CE=E75:45=A3=ACIlya = Dryomov =D0=B4=B5=C0=A3=BA >=20 > On Tue, Feb 13, 2018 at 2:30 AM, Chengguang Xu = wrote: >> Using seq_show_option to replace seq_printf for string type options. >>=20 >> Signed-off-by: Chengguang Xu >> --- >> fs/ceph/super.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >>=20 >> diff --git a/fs/ceph/super.c b/fs/ceph/super.c >> index a62d2a9..d8a33ad 100644 >> --- a/fs/ceph/super.c >> +++ b/fs/ceph/super.c >> @@ -512,7 +512,7 @@ static int ceph_show_options(struct seq_file *m, = struct dentry *root) >> seq_puts(m, ",nodcache"); >> if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) { >> if (fsopt->fscache_uniq) >> - seq_printf(m, ",fsc=3D%s", = fsopt->fscache_uniq); >> + seq_show_option(m, "fsc", = fsopt->fscache_uniq); >> else >> seq_puts(m, ",fsc"); >=20 > Hi Chengguang, >=20 > seq_show_option() should be able to handle !fsopt->fscache_uniq? Hi Ilya Sorry, I don=A1=AFt get your point here. Thanks, Chengguang.=