Commit eaebdedc authored by Fabian Frederick's avatar Fabian Frederick Committed by Steven Whitehouse

GFS2: fs/gfs2/super.c: replace seq_printf by seq_puts

fix checkpatch warnings:
"WARNING: Prefer seq_puts to seq_printf"

Cc: cluster-devel@redhat.com
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarSteven Whitehouse <swhiteho@redhat.com>
parent 372b1dbd
...@@ -1294,7 +1294,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root) ...@@ -1294,7 +1294,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
int val; int val;
if (is_ancestor(root, sdp->sd_master_dir)) if (is_ancestor(root, sdp->sd_master_dir))
seq_printf(s, ",meta"); seq_puts(s, ",meta");
if (args->ar_lockproto[0]) if (args->ar_lockproto[0])
seq_printf(s, ",lockproto=%s", args->ar_lockproto); seq_printf(s, ",lockproto=%s", args->ar_lockproto);
if (args->ar_locktable[0]) if (args->ar_locktable[0])
...@@ -1302,13 +1302,13 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root) ...@@ -1302,13 +1302,13 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
if (args->ar_hostdata[0]) if (args->ar_hostdata[0])
seq_printf(s, ",hostdata=%s", args->ar_hostdata); seq_printf(s, ",hostdata=%s", args->ar_hostdata);
if (args->ar_spectator) if (args->ar_spectator)
seq_printf(s, ",spectator"); seq_puts(s, ",spectator");
if (args->ar_localflocks) if (args->ar_localflocks)
seq_printf(s, ",localflocks"); seq_puts(s, ",localflocks");
if (args->ar_debug) if (args->ar_debug)
seq_printf(s, ",debug"); seq_puts(s, ",debug");
if (args->ar_posix_acl) if (args->ar_posix_acl)
seq_printf(s, ",acl"); seq_puts(s, ",acl");
if (args->ar_quota != GFS2_QUOTA_DEFAULT) { if (args->ar_quota != GFS2_QUOTA_DEFAULT) {
char *state; char *state;
switch (args->ar_quota) { switch (args->ar_quota) {
...@@ -1328,7 +1328,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root) ...@@ -1328,7 +1328,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
seq_printf(s, ",quota=%s", state); seq_printf(s, ",quota=%s", state);
} }
if (args->ar_suiddir) if (args->ar_suiddir)
seq_printf(s, ",suiddir"); seq_puts(s, ",suiddir");
if (args->ar_data != GFS2_DATA_DEFAULT) { if (args->ar_data != GFS2_DATA_DEFAULT) {
char *state; char *state;
switch (args->ar_data) { switch (args->ar_data) {
...@@ -1345,7 +1345,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root) ...@@ -1345,7 +1345,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
seq_printf(s, ",data=%s", state); seq_printf(s, ",data=%s", state);
} }
if (args->ar_discard) if (args->ar_discard)
seq_printf(s, ",discard"); seq_puts(s, ",discard");
val = sdp->sd_tune.gt_logd_secs; val = sdp->sd_tune.gt_logd_secs;
if (val != 30) if (val != 30)
seq_printf(s, ",commit=%d", val); seq_printf(s, ",commit=%d", val);
...@@ -1376,11 +1376,11 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root) ...@@ -1376,11 +1376,11 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
seq_printf(s, ",errors=%s", state); seq_printf(s, ",errors=%s", state);
} }
if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags)) if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags))
seq_printf(s, ",nobarrier"); seq_puts(s, ",nobarrier");
if (test_bit(SDF_DEMOTE, &sdp->sd_flags)) if (test_bit(SDF_DEMOTE, &sdp->sd_flags))
seq_printf(s, ",demote_interface_used"); seq_puts(s, ",demote_interface_used");
if (args->ar_rgrplvb) if (args->ar_rgrplvb)
seq_printf(s, ",rgrplvb"); seq_puts(s, ",rgrplvb");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment