summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@icloud.com>2018-02-15 08:39:05 +0100
committerIlya Dryomov <idryomov@gmail.com>2018-04-02 10:12:45 +0200
commit4d8969af28a5c1bccd9f42cf98ab5cff3c0fe140 (patch)
treefa423b2ef463803f841a2a03bec0df363e4a7707 /fs/ceph
parentlibceph: fix misjudgement of maximum monitor number (diff)
downloadlinux-4d8969af28a5c1bccd9f42cf98ab5cff3c0fe140.tar.xz
linux-4d8969af28a5c1bccd9f42cf98ab5cff3c0fe140.zip
ceph: use seq_show_option for string type options
Using seq_show_option to replace seq_printf for string type options. Signed-off-by: Chengguang Xu <cgxu519@icloud.com> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/super.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/ceph/super.c b/fs/ceph/super.c
index ca8a830c07ad..52fec209f0a6 100644
--- a/fs/ceph/super.c
+++ b/fs/ceph/super.c
@@ -516,10 +516,7 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root)
if ((fsopt->flags & CEPH_MOUNT_OPT_DCACHE) == 0)
seq_puts(m, ",nodcache");
if (fsopt->flags & CEPH_MOUNT_OPT_FSCACHE) {
- if (fsopt->fscache_uniq)
- seq_printf(m, ",fsc=%s", fsopt->fscache_uniq);
- else
- seq_puts(m, ",fsc");
+ seq_show_option(m, "fsc", fsopt->fscache_uniq);
}
if (fsopt->flags & CEPH_MOUNT_OPT_NOPOOLPERM)
seq_puts(m, ",nopoolperm");
@@ -532,7 +529,7 @@ static int ceph_show_options(struct seq_file *m, struct dentry *root)
#endif
if (fsopt->mds_namespace)
- seq_printf(m, ",mds_namespace=%s", fsopt->mds_namespace);
+ seq_show_option(m, "mds_namespace", fsopt->mds_namespace);
if (fsopt->wsize)
seq_printf(m, ",wsize=%d", fsopt->wsize);
if (fsopt->rsize != CEPH_MAX_READ_SIZE)