Skip to content

Commit eaebded

Browse files
Fabian Frederickswhiteho
authored andcommitted
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
1 parent 372b1db commit eaebded

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎fs/gfs2/super.c‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,21 +1294,21 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
12941294
int val;
12951295

12961296
if (is_ancestor(root, sdp->sd_master_dir))
1297-
seq_printf(s, ",meta");
1297+
seq_puts(s, ",meta");
12981298
if (args->ar_lockproto[0])
12991299
seq_printf(s, ",lockproto=%s", args->ar_lockproto);
13001300
if (args->ar_locktable[0])
13011301
seq_printf(s, ",locktable=%s", args->ar_locktable);
13021302
if (args->ar_hostdata[0])
13031303
seq_printf(s, ",hostdata=%s", args->ar_hostdata);
13041304
if (args->ar_spectator)
1305-
seq_printf(s, ",spectator");
1305+
seq_puts(s, ",spectator");
13061306
if (args->ar_localflocks)
1307-
seq_printf(s, ",localflocks");
1307+
seq_puts(s, ",localflocks");
13081308
if (args->ar_debug)
1309-
seq_printf(s, ",debug");
1309+
seq_puts(s, ",debug");
13101310
if (args->ar_posix_acl)
1311-
seq_printf(s, ",acl");
1311+
seq_puts(s, ",acl");
13121312
if (args->ar_quota != GFS2_QUOTA_DEFAULT) {
13131313
char *state;
13141314
switch (args->ar_quota) {
@@ -1328,7 +1328,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
13281328
seq_printf(s, ",quota=%s", state);
13291329
}
13301330
if (args->ar_suiddir)
1331-
seq_printf(s, ",suiddir");
1331+
seq_puts(s, ",suiddir");
13321332
if (args->ar_data != GFS2_DATA_DEFAULT) {
13331333
char *state;
13341334
switch (args->ar_data) {
@@ -1345,7 +1345,7 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
13451345
seq_printf(s, ",data=%s", state);
13461346
}
13471347
if (args->ar_discard)
1348-
seq_printf(s, ",discard");
1348+
seq_puts(s, ",discard");
13491349
val = sdp->sd_tune.gt_logd_secs;
13501350
if (val != 30)
13511351
seq_printf(s, ",commit=%d", val);
@@ -1376,11 +1376,11 @@ static int gfs2_show_options(struct seq_file *s, struct dentry *root)
13761376
seq_printf(s, ",errors=%s", state);
13771377
}
13781378
if (test_bit(SDF_NOBARRIERS, &sdp->sd_flags))
1379-
seq_printf(s, ",nobarrier");
1379+
seq_puts(s, ",nobarrier");
13801380
if (test_bit(SDF_DEMOTE, &sdp->sd_flags))
1381-
seq_printf(s, ",demote_interface_used");
1381+
seq_puts(s, ",demote_interface_used");
13821382
if (args->ar_rgrplvb)
1383-
seq_printf(s, ",rgrplvb");
1383+
seq_puts(s, ",rgrplvb");
13841384
return 0;
13851385
}
13861386

0 commit comments

Comments
 (0)